?
avatar weeblr
weeblr
19 Jun 2017

Steps to reproduce the issue

  • install stock joomla 3.7.2, with learning Joomla sample data

  • Create view=featured menu item (Featured-A), showing category "Content modules" (Itemid=471)

  • Create another view=featured menu item (Featured B), showing category "Display modules" (Itemid = 472 )

  • In an article from category "Content modules" (ie displayed with Itemid 471), create 2 links:

index.php?option=com_content&view=featured&Itemid=471 (Featured A, Content Modules)
and
index.php?option=com_content&view=featured&Itemid=472 (Featured B, Display Modules)

  • In an article from category "Display modules" (ie displayed with Itemid 472), create the same 2 links:

index.php?option=com_content&view=featured&Itemid=471
and
index.php?option=com_content&view=featured&Itemid=472

  • set both articles to "Featured", so that they are displayed on their respective Featured view, and visit those 2 pages, Featured A and Featured B

Expected result

In all cases, links go to the "Content modules" and the "Display modules" featured views, respectively.

Actual result

On the Featured A view, the first link goes to home page, the second link is correct and goes to "Display modules"
On the Featured B view, it's the opposite, the first link is correct, the second link goes to home page.

What's happening is that when the link Itemid is the same as the current page Itemid, the router tries to "fix" the Itemid, by searching a more suitable one, but because the standard Joomla install home page is also a featured view, it uses the home page Itemid (which is first in the list of menu items) instead of leaving the it alone.

System information (as much as possible)

Additional comments

avatar weeblr weeblr - open - 19 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jun 2017
Category Router / SEF
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jun 2017

Router > 3.8 > Lead @mbabker

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2017
Status New Information Required
avatar weeblr
weeblr - comment - 30 Jul 2017

Hi

Just verified that the same issue still appears on Joomla 3.7.4.

Rdgs

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Aug 2017

@weeblr can you please test 3.8 on this Issue?


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

avatar weeblr
weeblr - comment - 28 Aug 2017

Hi

I tested this with j38 beta 3 and can make the following comments:

Without the patch from #17562

  • With stable routing, the problem is still there
  • Using the experimental router, the behavior is the same, but the URLs are different: they all get "?view=featured appended" as in:
    /?view=featured and content-modules?view=featured
    or
    /content-modules?view=featured and /?view=featured
    so basically same issue as with stable routing

With the patch from #17652

  • With stable routing, the problem is fixed and both URLs are correct on both pages
  • With experimental routing the base URLs are fixed as well, but they still both get a ?view=featured query string appended

Rgds

avatar csthomas
csthomas - comment - 28 Aug 2017

Try to test #17746.

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Aug 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-08-29 04:42:36
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 29 Aug 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Aug 2017

closed as having Pull Request #17746


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 29 Aug 2017

Add a Comment

Login with GitHub to post a comment