[6.1] Router: Enforce suffix by default if enabled#44480
[6.1] Router: Enforce suffix by default if enabled#44480Hackwar wants to merge 5 commits intojoomla:6.1-devfrom
Conversation
|
I have tested this item 🔴 unsuccessfully on 9873b77
Expected a smooths transition, at least not a fatal error |
|
That is why it says |
|
I changed this to draft since it's not ready |
|
I added the b/c break label because technically it removes anoption and forces this behavior on everyone, even though it is the expected behavior. |
|
I have tested this item ✅ successfully on 7950bcb This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44480. |
|
Could you clarify the testing instructions? Without the patch applied, and using this url: With the patch applied all pages produce an error: |
|
@ceford with which Joomla version did you test this? The code you mentioned is only available in recent versions of Joomla 6. |
I use a local clone and update it often, last time being a few days ago. And from time to time I throw it away and start again. The last commit message for this test was May 28: [6.0] Workflow: use generic AbstractApplication in type hint (#43155) |
|
This pull request has been automatically rebased to 6.1-dev. |
|
I have tested this item ✅ successfully on 08d5790 All URLs are redirecting to the version with .html at the end. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44480. |
|
Tried to test with 'Add Suffix to URL' and 'Use URL Rewriting' and |
Summary of Changes
This PR changes the feature introduced in 5.2.0 to be able to enforce a suffix ending if it is enabled and makes this the standard behavior. It removes the option from the SEF plugin and moves the code to the SiteRouter class, at the same time using the "tainted URL" feature from #44455 to prevent unnecessary redirects.
Testing Instructions
?format=htmlto the URL?format=htmlto the URLActual result BEFORE applying this Pull Request
Joomla loads all the URLs without any redirects.
Expected result AFTER applying this Pull Request
All URLs are redirected to the version with
.htmlat the end.Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed