From 01c5d40c62d44d63028470aca61b91891a842f58 Mon Sep 17 00:00:00 2001 From: panopt Date: Tue, 12 Jun 2018 17:58:10 +0200 Subject: [PATCH] Login to view the article redirect fix Without the view=login parameter JRoute can not resolve the Itemid. So the menu item assigned to 'login' is not active. Seems there is a related hack here: /com_content/views/article/tmpl/default.php ~line 143 This can also cause problems with third party extensions like sh404sef. --- components/com_content/views/article/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/com_content/views/article/view.html.php b/components/com_content/views/article/view.html.php index 1f51e206d3e88..ed202f73044a6 100644 --- a/components/com_content/views/article/view.html.php +++ b/components/com_content/views/article/view.html.php @@ -150,7 +150,7 @@ public function display($tpl = null) if ($this->user->get('guest')) { $return = base64_encode(JUri::getInstance()); - $login_url_with_return = JRoute::_('index.php?option=com_users&return=' . $return); + $login_url_with_return = JRoute::_('index.php?option=com_users&view=login&return=' . $return); $app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'notice'); $app->redirect($login_url_with_return, 403); }