Component delivers 303 status code instead of 301 (#272)

This commit is contained in:
zero-24 2016-10-15 15:44:28 +02:00 committed by Jelle Kok
parent 6eb07c1e40
commit f158889d94
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class WeblinksControllerWeblink extends JControllerForm
if ($link->url)
{
$modelLink->hit($id);
JFactory::getApplication()->redirect($link->url);
JFactory::getApplication()->redirect($link->url, 301);
}
return JError::raiseWarning(404, JText::_('COM_WEBLINKS_ERROR_WEBLINK_URL_INVALID'));