?
avatar akfaisel
akfaisel
7 Aug 2017

Steps to reproduce the issue

  1. Login to backend
  2. Go to Module Manager and create a new Login Module
  3. Position it and set it to show on home page.

Expected result

When hovered over Forgot Password Itemid is not supposed to be added to the link.
http://www.yoursite.com/component/users/?view=reset

Actual result

Starting from Joomla 3.7, this gets added automatically and the component area is not shown.
http://www.yoursite.com/component/users/?view=reset&Itemid=101

System information (as much as possible)

Joomla 3.7

Additional comments

NA

avatar akfaisel akfaisel - open - 7 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Aug 2017
Category Authentication com_login com_modules
avatar tonypartridge
tonypartridge - comment - 7 Aug 2017

This happens because you haven't created a menu item for it. Since Joomla needs a menu item it loads in the homepage menu item.

It's not a bug, it's how Joomla! Works otherwise it wouldn't know what modules to load. You just need to create a login type men item.

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Aug 2017
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2017-08-07 06:28:03
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 7 Aug 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Aug 2017

closed as expected Behaviour.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17431.

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 Aug 2017
avatar akfaisel
akfaisel - comment - 7 Aug 2017

I have been using Joomla since 2009 and I have never created menu item for it.

This is happening since J3.7 and it cannot be a expected behavior.

Before J3.7, Itemid=101 will not be added.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17431.

avatar mbabker
mbabker - comment - 7 Aug 2017

The Itemid may not have been explicitly added to the URL when generating it before 3.7, but when visiting the URL you gave without the Itemid the system internally would end up resolving the default menu item anyway if it couldn't find a menu item for your requested page. So the only thing that has changed is the Itemid that would be resolved when visiting a page is now more proactively included when building URLs.

avatar arvindpdmn
arvindpdmn - comment - 6 Apr 2018

I discovered this yesterday when moving to v3.8.6. The code that does this is in libraries\src\Component\Router\Rules\MenuRules.php in preprocess method:

// If not found, return language specific home link
$default = $this->router->menu->getDefault($language);

if (!empty($default->id))
{
	$query['Itemid'] = $default->id;
}

Add a Comment

Login with GitHub to post a comment