30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-01 22:10:50 +00:00

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

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'));