No Code Attached Yet
avatar peterhulst
peterhulst
20 Mar 2024

Steps to reproduce the issue

J3.10.12 and 4.4.3

  • Search Engine Friendly URLs: Yes
  • Use URL Rewriting: Yes
  • Articles with keyword(s)
  • Publish e.g. module Articles - Related
  • Display the same article in J3 and J4.
  • Look at the links in module Articles - Related

Expected result

  • SEF-Links in J3 and J4 are equal e.g.:
  • https://(domain)/186-uitslagen-2008-2017/buurcontactommelander-loopcircuit-200817/845-eemsmondloop-Uithuizermeeden-10-en-5-km-18-september-2010

Actual result

  • SEF-Links in J3 and J4 are different. In J4 no SEF is visible.
  • J3: https://(domain)/186-uitslagen-2008-2017/buurcontactommelander-loopcircuit-200817/845-eemsmondloop-Uithuizermeeden-10-en-5-km-18-september-2010
    - J4: https://(domain)/?view=article&id=845:eemsmondloop-Uithuizermeeden-10-en-5-km-18-september-2010&catid=186

System information (as much as possible)

J3.10.12 and 4.4.3

  • Search Engine Friendly URLs: Yes
  • Use URL Rewriting: Yes
  • Articles with keyword(s)

Additional comments

  • It happens with converted articles (from J3 --> J4) as well as new articles
  • The articles are not linked to a menu item.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar peterhulst peterhulst - open - 20 Mar 2024
avatar peterhulst peterhulst - change - 20 Mar 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Mar 2024
avatar Hackwar Hackwar - change - 22 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-22 20:59:49
Closed_By Hackwar
avatar Hackwar Hackwar - close - 22 Mar 2024
avatar Hackwar
Hackwar - comment - 22 Mar 2024

The last line in your description is what is the main point in this. This is not a bug, but actually expected behavior. At least more or less. Yes, we would want to have a URL without query parameters, but that is already tackled by #42989. But besides that, this is intended behavior and you would have to create the right menu structure for your site to work in such a manner.

avatar peterhulst
peterhulst - comment - 23 Mar 2024

Thanks you for your answer. Although it is expected behaviour, it does not explain the difference between J3 (with nice URLs) an J4 (with ugly URLs). Has the router in J4 changed that much and why? The menu structure is not changed between my J3 an J4 version.

avatar Hackwar
Hackwar - comment - 23 Mar 2024

The router between 3 and 4 has been made more strict and to bail earlier when the resulting URL would not be desirable. However, as I wrote, there is one change in there, which I'm trying to fix with #42989. Feel free to test that PR.

Add a Comment

Login with GitHub to post a comment