No Code Attached Yet
avatar universewrld
universewrld
15 Oct 2024

Steps to reproduce the issue

  1. Articles -> Optoions -> Integration -> Routing -> Remove IDs from URLs -> Yes
  2. System -> Plugins -> System - SEF -> Strict Routing -> Yes

If your website previously had disabled SEF options, then old links that have an ID's will not be automatically redirected to new versions of pages without an ID's.

For example:

  1. a category that had an ID will not be automatically redirected to a version of the category without an ID (the page will be available here at the old URL)
  2. an article that had an ID will not be automatically redirected to a version of the article without an ID (there will be a 404 error here)

Expected result

these pages will be automatically redirected to new versions without ID:
site.com/category/11-super-category -> site.com/category/super-category
site.com/category/1-article -> site.com/category/article

Actual result

site.com/category/11-super-category -> site.com/category/11-super-category (the same page)
site.com/category/1-article -> site.com/404 (404 page)

System information (as much as possible)

Joomla 5.2
Image
Image

Additional comments

other types of redirects work well, but redirecting pages with an ID to a version without an ID does not work at all.

avatar universewrld universewrld - open - 15 Oct 2024
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Oct 2024
avatar universewrld universewrld - change - 15 Oct 2024
The description was changed
avatar universewrld universewrld - edited - 15 Oct 2024
avatar universewrld universewrld - change - 15 Oct 2024
The description was changed
avatar universewrld universewrld - edited - 15 Oct 2024
avatar Hackwar
Hackwar - comment - 15 Oct 2024

Are you saying that this worked on the past or that you are expecting this from the new strict routing option?

avatar peteruoi
peteruoi - comment - 16 Oct 2024

Maybe irrelevant, maybe relevant.
Is there some article or guide about the behaviour of urls between joomla 3 joomla 4 joomla 5 , 5.2?
I believe a reason for keeping many sites to 3 or even to 4 is because of the not so clear transition to the urls.
I don't mean it is something that has become worse i am sure about the opposite.
It is just me and probably other webmasters have a problem figuring out if needed and when should make all kinds of redirects so as not not lose their seos.
For example a url copied pasted from joomla 3 with ids works when in joomla 4? and what happen to joomla 5? IDOes something changes in 5.2?
SOrry if you think i hijacked but i think it was a good oppurtunity as to define what it is to be expected.

avatar Hackwar
Hackwar - comment - 16 Oct 2024

URLs with modern routing in J3 will be identical in J4. URLs without modern routing in J3 will be identical in J4 as long as there isn't more than one level of categories after the part of the menu item. URLs in J4 and J5 are identical.

avatar universewrld
universewrld - comment - 16 Oct 2024

Are you saying that this worked on the past or that you are expecting this from the new strict routing option?

I expect that Strict Routing will also have an option to redirect articles/categories that were previously published with an ID in the URL to a version without an ID in the URL.

some third-party SEF components for Joomla 3 supported this, but when I migrated to Joomla 5, I found that many older SEF components were not migrated to Joomla 5.

@Hackwar the current settings of SEF in Joomla 5 for me now look like help with eliminating only 50% of duplicate URLs, but the remaining 50% of duplicate URLs are still available.

my site has thousands of articles that look like site.com/category/11-article or site.com/24-category/11-article and if i enable Remove IDs from URLs all those thousands of URLs will fail with 404 error instead of redirecting to the version of the page without ID.

so that @joomla completely eliminates all duplicate URLs there should be 2 additional settings:

  1. redirect URL with ID to URL without ID
  2. canonical links for pagination pages (for URLs like site.com/?start=10)
avatar Hackwar
Hackwar - comment - 16 Oct 2024

We did not claim that strict routing will fix all issues and solve all site setups. The current changes don't support what you are asking for. To be a bit blunt: if your site has IDs enabled, then didn't disable them, at least not now. This isn't a bug, but a feature request.

avatar universewrld
universewrld - comment - 16 Oct 2024

We did not claim that strict routing will fix all issues and solve all site setups. The current changes don't support what you are asking for. To be a bit blunt: if your site has IDs enabled, then didn't disable them, at least not now. This isn't a bug, but a feature request.

Thanks for the explanation!
I hope that in future versions of @joomla there will be an option to remove all duplicate URLs.

avatar universewrld
universewrld - comment - 18 Oct 2024

This isn't a bug, but a feature request.

@Hackwar I created a feature request: #44310

avatar universewrld universewrld - change - 19 Oct 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-10-19 10:36:37
Closed_By universewrld
avatar universewrld universewrld - close - 19 Oct 2024

Add a Comment

Login with GitHub to post a comment