-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: Enforce suffix #42850
[5.2] SEF: Enforce suffix #42850
Conversation
This looks like it addresses a 7 year old bug #15025 |
I have tested this item ✅ successfully on 784cfda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
2 similar comments
I have tested this item ✅ successfully on 784cfda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
I have tested this item ✅ successfully on 784cfda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
In favour of the bug fix. Not in favour of the option. As such this should be in 4.4 as a bug fix and not as a new feature in a future release |
Link to documentation has been added. |
This is a change in behavior and not just a bugfix. That's why we wont get around this option. For Joomla 6.0 this option will be removed again and the behavior added to the normal behavior of the |
Failed. Too bad, because it's a strong request from a client of mine and for that reason SEO agency it's working with ask to migrate to another CMS... |
@Nuyonuyonoina could you comment what is failing on your end? Otherwise I can't fix that and this PR wont be merged. |
failed. followed the instructions, but if I remove .html from the URL it does not get added back |
I have tested this item 🔴 unsuccessfully on 784cfda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
Tested on PHP 8.1.27, 10.4.32-MariaDB, Joomla! 5.1.0-alpha4 Alpha [ Kudumisha ] 20-February-2024 16:31 GMT This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
Thank you, @SniperSister, I fixed that. @ceford, @nielsnuebel, @viocassel and of course anybody else who is intersted, would you be so kind to test this again, so that we can merge this for 5.2? |
I have tested this item ✅ successfully on 5900b39 An error has occurred.
I needed to disable the sef plugin in the database to get admin working again. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
I have tested this item 🔴 unsuccessfully on 5900b39 An error has occurred.
I needed to disable the sef plugin in the database to get admin working again. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
My clone is up to date. I checked out 5.2-dev - title bar shows 5.2.0-alpha1-dev The SEF plugin is enabled. I apply the patch and then all menu items in the back end give:
So I have to disable the plugin so I can revert the patch. It may be my installation that is the problem but I don't know what to do about it. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
I have tested this item ✅ successfully on ef8201e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
1 similar comment
I have tested this item ✅ successfully on ef8201e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
I have tested this item ✅ successfully on ef8201e I confirmed that with the global config set then the html prefix is restored after you remove it manually. I also confirmed that an xml feed document was returned correctly whenever a prefix of .feed or a query parameter of format=feed was set in the URL. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42850. |
@ceford could you please check if the problem still exists? |
Thanks @Hackwar ! |
joomla/joomla-cms#43232 + joomla/joomla-cms#43378 + joomla/joomla-cms#43216 + joomla/joomla-cms#43260 + joomla/joomla-cms#43386 + joomla/joomla-cms#43575 + joomla/joomla-cms#43491 + joomla/joomla-cms#43760 - (upmerge, внесено в 5.1х) joomla/joomla-cms#43247 + joomla/joomla-cms#43579 + joomla/joomla-cms#43690 + joomla/joomla-cms#43829 + joomla/joomla-cms#43840 + joomla/joomla-cms#43841 + joomla/joomla-cms#43885 - (upmerge, только для др. пакетов) joomla/joomla-cms#43223 + joomla/joomla-cms#43810 - (только для en-GB) joomla/joomla-cms#43898 + joomla/joomla-cms#43432 + joomla/joomla-cms#43870 + joomla/joomla-cms#42850 + joomla/joomla-cms#43937 - (upmerge, только для др. пакетов) joomla/joomla-cms#43862 + joomla/joomla-cms#43975 + joomla/joomla-cms#43910 + joomla/joomla-cms#43965 + joomla/joomla-cms#43738 + joomla/joomla-cms#43814 + joomla/joomla-cms#44000 + joomla/joomla-cms#44050 + (upmerge, с 4.4.9) joomla/joomla-cms#43966 + joomla/joomla-cms#44065 +
Pull Request for Issue #15025 .
Summary of Changes
Joomla has been improving its SEO performance constantly and one issue which is still open is the behavior of the suffix. Right now, you can access a URL in Joomla with or without suffix when the option is enabled in the global configuration. This PR introduces a new setting the SEF system plugin which enforces a consistent suffix behavior.
When SEF URLs are enabled, the suffix is enabled and this option is enabled, Joomla will always redirect GET requests to a URL with a suffix if none is present. It will also redirect URLs with a query
format
parameter to the nicer URL and replace the "nice" suffix with theformat
parameter if the two collide.With Joomla 6.0 the option to switch this on/off should be removed again and this should be the default behavior, which would then be added to
SiteRouter::parseFormat()
. Right now this is YASO (Yet Another Stupid Option) to allow people to test this in live systems and to switch it off if we encounter unforseen issues. The time from 5.1 to 6.0 could be seen as a grace period.This PR depends on #42692.I'd like to thank djumla GmbH for sponsoring this feature.
Testing Instructions
/
don't have a suffix, everything else has a suffix..html
.?format=feed
to it, for example for a category blog view. See that you get the feed output with the right URL.Link to documentations
Please select:
Documentation link for docs.joomla.org: https://docs.joomla.org/Search_Engine_Friendly_URLs
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed