Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in URL routing in Joomla 3.7.5 and Joomla 3.8.0 beta 3 #17719

Closed
arrowthemes opened this issue Aug 25, 2017 · 10 comments
Closed

Bug in URL routing in Joomla 3.7.5 and Joomla 3.8.0 beta 3 #17719

arrowthemes opened this issue Aug 25, 2017 · 10 comments

Comments

@arrowthemes
Copy link
Contributor

arrowthemes commented Aug 25, 2017

Steps to reproduce the issue

  1. Install a clean Joomla installation with 3.7.5 or Joomla 3.8.0 beta 3 with no sample data
  2. Create the following menu structure

menu_structure

3. Turn off Search Engine Friendly URLs in Global Configuration 4. Go to the front-end and click on the menu as follows: a) Click on Style 1 b) Click on Style 2 c) Click on Style 2 the second time

Expected result

a) The URL when you click on Style 1 is: index.php?option=com_content&view=article&id=1&Itemid=104
b) The URL when you click on Style 2 is: index.php?option=com_content&view=article&id=1&Itemid=105
c) The URL when you click on Style 2 the second time should still be index.php?option=com_content&view=article&id=1&Itemid=105

Actual result

a) The URL when you click on Style 1 is: index.php?option=com_content&view=article&id=1&Itemid=104 (see screenshot)
style_1_clicked
b) The URL when you click on Style 2 is: index.php?option=com_content&view=article&id=1&Itemid=105 (see screenshot)
style_2_clicked_once
c) The URL when you click on Style 2 the second time is index.php?option=com_content&view=article&id=1&Itemid=104 (see screenshot)
style_2_clicked_second_time

System information (as much as possible)

=============
System Information

dbversion: 5.6.35
dbcollation: utf8_general_ci
dbconnectioncollation: utf8mb4_general_ci
phpversion: 7.1.6
server: Apache
sapi_name: apache2handler
version: Joomla! 3.8.0-beta3 Beta [ Amani ] 22-August-2017 14:00 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Additional comments

If you enable Search Engine URL, the issue doesn't ok.

@brianteeman
Copy link
Contributor

Do you get the same problem when you are linking to different articles. I suspect the problem is you are trying to create duplicate views of the same article to showcase your template.

@mbabker
Copy link
Contributor

mbabker commented Aug 25, 2017

There are several open issues related to having multiple menu items pointing to the same piece of content.

@arrowthemes
Copy link
Contributor Author

arrowthemes commented Aug 25, 2017

@brianteeman That's the case but I've encountered real world scenarios where I'd want to link to the same article but just change the modules for the url.
When I link to different articles, the issue does not occur

@brianteeman
Copy link
Contributor

First people complain about joomla creating duplicate content and then they moan that it wont let them create duplicate content #cantwin

@arrowthemes
Copy link
Contributor Author

@brianteeman
Most template frameworks allow you to hide the article completely. So in that case you won't have duplicate content and that's what I mean.
Take for instance a site I did for LogicalDOC. The home page is built of modules only - but the home menu is linked to a placeholder article. The overview page works the same way - built of modules only and linked to the same placeholder article. If I disabled SEF URLs then clicking on overview twice would take me to another page with a different itemid.

If you enable Search Engine Friendly URLs, the issue doesn't occur, so it will be nice to have a consistent expected result. This to me is not a must have; If you feel it's not worth looking into it, that's pretty fine with me.

@Bakual
Copy link
Contributor

Bakual commented Aug 26, 2017

It's not a problem to have the same article accessible under multiple URLs. Duplicate Content is only an issue if it is spread over different domains. But facts never counted, people believe what they want 😀

@Twincarb
Copy link
Contributor

Having the same content at 2 separate URL's with different templates causes the both URL's to use the lower itemid number as well. The workaround is to have the same content duplicated which makes each one unique.


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

@ggppdk
Copy link
Contributor

ggppdk commented Aug 27, 2017

If you enable Search Engine Friendly URLs, the issue doesn't occur, so it will be nice to have a consistent expected result.

ok it should be consistent,
router selecting different Itemid when SEF urls is off, is surely a bug
and makes testing web-sites with SEF off problematic

and even if this appeared with both SEF on / off, it is still a bug,
since it changes expected behaviour of every menu item being able to use its own Itemid !

and reasons for having 2 menu items to same content have been already mentioned above

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17719

@ghost
Copy link

ghost commented Aug 28, 2017

closed as having Pull Request #17746


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants