Feature PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
28 Jul 2024

Pull Request for issue #24315, #25449, #39181

Summary of Changes

This is a refactoring of the routing component of the languagefilter plugin. The goal are as follows:

  • Allow to parse URLs more than once. Right now the parseing of the languagefilter plugin sets a lot of state and even does redirects.
  • When the prefix of the default language is set to be removed, the redirect for the language switch is removed.
  • Make the code simpler and more reliable.

Right now this PR is a Proof Of Concept and is NOT ready. This is to collect feedback from the community and other developers.

Testing Instructions

Setup different multilanguage sites and apply the patch. The default behavior should not change, except that when the default prefix is removed, you can switch the language without an additional redirect.

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

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
5.00

avatar Hackwar Hackwar - open - 28 Jul 2024
avatar Hackwar Hackwar - change - 28 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jul 2024
Category Front End Plugins
avatar Hackwar Hackwar - change - 28 Jul 2024
Labels Added: PR-5.2-dev
avatar Hackwar Hackwar - change - 3 Aug 2024
Labels Added: Feature
avatar Hackwar Hackwar - change - 19 Aug 2024
The description was changed
avatar Hackwar Hackwar - edited - 19 Aug 2024
avatar Hackwar Hackwar - change - 19 Aug 2024
The description was changed
avatar Hackwar Hackwar - edited - 19 Aug 2024
avatar Hackwar Hackwar - change - 20 Aug 2024
The description was changed
avatar Hackwar Hackwar - edited - 20 Aug 2024
avatar Slava287
Slava287 - comment - 23 Aug 2024

Works. Thank you!

avatar brianteeman
brianteeman - comment - 23 Aug 2024

@Slava287 Please go to the issue tracker here https://issues.joomla.org/tracker/joomla-cms/43858 and mark your test result by using the blue "Test this" button at the top left corner, selecting your test result and finally submit, so that your test is properly counted. Just a comment here is not enough. Thanks in advance.

avatar Slava287 Slava287 - test_item - 23 Aug 2024 - Tested successfully
avatar Slava287
Slava287 - comment - 23 Aug 2024

I have tested this item ✅ successfully on 3f9a0c5

Everything works correctly. There are no errors. I also tested it on the latest version of Joomla! 5.1.3 Stable


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43858.

avatar Slava287
Slava287 - comment - 23 Aug 2024

Ok


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43858.

avatar Hackwar
Hackwar - comment - 24 Aug 2024

When suffix are enabled, this unfortunately right now creates URLs like /en.html. I still have to take a look what we have to do here.

avatar Slava287
Slava287 - comment - 24 Aug 2024

Hello. Indeed, I didn’t notice it right away

avatar Hackwar Hackwar - change - 28 Aug 2024
Title
[5.2] Languagefilter: Refactoring of routing
[5.3] Languagefilter: Refactoring of routing
avatar Hackwar Hackwar - edited - 28 Aug 2024
avatar Hackwar Hackwar - change - 21 Nov 2024
Labels Added: PR-5.3-dev
Removed: PR-5.2-dev
avatar Hackwar
Hackwar - comment - 21 Nov 2024

Now the URLs should all be generated correctly.

Add a Comment

Login with GitHub to post a comment