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

[5.2][SEF] Articles and categories are not redirected to versions of pages without IDs #44263

Closed
universewrld opened this issue Oct 15, 2024 · 7 comments

Comments

@universewrld
Copy link

universewrld commented Oct 15, 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.

@Hackwar
Copy link
Member

Hackwar commented Oct 15, 2024

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

@peteruoi
Copy link

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.

@Hackwar
Copy link
Member

Hackwar commented Oct 16, 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.

@universewrld
Copy link
Author

universewrld commented Oct 16, 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)

@Hackwar
Copy link
Member

Hackwar commented Oct 16, 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.

@universewrld
Copy link
Author

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.

@universewrld
Copy link
Author

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

@Hackwar I created a feature request: #44310

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

4 participants