Feature Language Change PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
31 Jan 2026

Summary of Changes

This enhancement either automatically or manually creates a redirect with the Joomla! redirect component when an article, article category or menu item is changed which would result in a new URL

Testing Instructions

  • enable the redirect plugin in your backend administrator area
  • Go to the com_content or com_menus options and activate the redirect creation (backend: yes/no/manually frontend: yes/no)
image
  • change an article, article categories or menu items in a way (by changing the alias) that a new URL would be generated in the frontend
    (article has to be in a blog view linked in the frontend, category has to be a subcategory of an linked categorie)

For the manual option, also check what happens if the user has no permission to create redirects (automatically will ignore the permission and always creates an redirect)

Actual result BEFORE applying this Pull Request

Nothing happened

Expected result AFTER applying this Pull Request

When option is set to "manually" you get in the backend:
image

When option is set to "yes", you can check the redirect extension (System => Redirects) to see the new redirects appearing.

Thank you

To @rachelwalraven and especially @HLeithner for feedbacks, ideas and concepts.

avatar bembelimen bembelimen - open - 31 Jan 2026
avatar bembelimen bembelimen - change - 31 Jan 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2026
Category Administration com_content com_menus com_redirect Language & Strings Libraries Front End Plugins
avatar bembelimen bembelimen - change - 31 Jan 2026
The description was changed
avatar bembelimen bembelimen - edited - 31 Jan 2026
avatar bembelimen bembelimen - change - 31 Jan 2026
The description was changed
avatar bembelimen bembelimen - edited - 31 Jan 2026
avatar bembelimen bembelimen - change - 31 Jan 2026
The description was changed
avatar bembelimen bembelimen - edited - 31 Jan 2026
avatar bembelimen bembelimen - change - 31 Jan 2026
Labels Added: Language Change PR-6.1-dev
avatar cyrez
cyrez - comment - 31 Jan 2026

Just tested it: great addition!

Only one thing: when set in manually set redirect, the modal works ok, but after save, and the modal close, the alert message "set a redirect" is not auto-hidden.

avatar brianteeman
brianteeman - comment - 31 Jan 2026

Great idea

avatar brianteeman
brianteeman - comment - 31 Jan 2026

What happens in this scenario and will it cause too many redirects issues.

Set redirects to automatic
Create article in category a
Change to category b
Change back to category a

avatar Rajat-1804
Rajat-1804 - comment - 31 Jan 2026

I have tested this item ✅ successfully

Environment: Windows/XAMPP, Joomla 6.1-dev

Tests:

Enabled System - Redirect plugin with "Create redirect on save" set to Yes
Changed article alias and saved
✅ Redirect automatically created in System → Redirects (old URL → new URL)
Tested Manually mode - message with "Create redirect" button appeared correctly

Result: Works as expected. Redirects created successfully for articles, categories, and menus when aliases change.


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

avatar Rajat-1804 Rajat-1804 - test_item - 31 Jan 2026 - Tested successfully
avatar Rajat-1804
Rajat-1804 - comment - 31 Jan 2026

I have tested this item ✅ successfully on 9afea6f


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

avatar PranavAgarkar07 PranavAgarkar07 - test_item - 31 Jan 2026 - Tested successfully
avatar PranavAgarkar07
PranavAgarkar07 - comment - 31 Jan 2026

I have tested this item ✅ successfully on 9afea6f

Redirects are automatically created when URLs change. Both automatic and manual modes work as expected.


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

avatar bembelimen
bembelimen - comment - 31 Jan 2026

What happens in this scenario and will it cause too many redirects issues.

Set redirects to automatic Create article in category a Change to category b Change back to category a

Not sure, if I understand correctly, but redirects are only executed, when the link is a 404, so if you change the category and back, the redirects are created but ignored (at least the one for the valid link)

avatar brianteeman
brianteeman - comment - 31 Jan 2026

yes you understand correctly. My "worry" is that if someone reorganise a site a few times they can end up with a lot of redirects.

If you change my scenario to
Create article in category a
Change to category b
Change to category c

then if someone visits the article link in category a they get a 404 and redirected to category b and get a 404 and redirected to category c

avatar bembelimen
bembelimen - comment - 31 Jan 2026

If you change my scenario to Create article in category a Change to category b Change to category c

then if someone visits the article link in category a they get a 404 and redirected to category b and get a 404 and redirected to category c

Yes that happens, it could be an issue, but that's more an architectural issue I would say, if you add a redirect link to your htaccess, you will also have this chain, if you not update every "former link" manually. Not sure if this can be fixed by code (I mean we could somehow....not sure if we should...)

avatar brianteeman
brianteeman - comment - 31 Jan 2026

Isnt it confusing to enable it in plugin - especially as its only for supported components which the user can't determine

image

I would have thought that this is something that should be enabled/configured per component in the integrations tab and that way you can easily see if a component supports this feature and set it per component. And finally you are styling this completely different to every other option in the core joomla ui. So I would be looking at something like this in the articles options (and any other component that supports this awesome feature)

image

I love the idea of this functionality but better to get it right than have to fix it later

avatar brianteeman
brianteeman - comment - 31 Jan 2026

will test some more scenarios tomorrow which I think might cause problems (or at least require documenting for the end user) such as content with its own menu item

avatar bembelimen bembelimen - change - 31 Jan 2026
Labels Added: Feature
avatar bembelimen bembelimen - change - 31 Jan 2026
The description was changed
avatar bembelimen bembelimen - edited - 31 Jan 2026
avatar bembelimen
bembelimen - comment - 31 Jan 2026

I like the idea of having the option in the different component options, so I rebuilt the plugin and moved the options to the config of each component.

avatar brianteeman
brianteeman - comment - 31 Jan 2026

Doesnt create redirects when you use batch move to change the category

avatar bembelimen
bembelimen - comment - 1 Feb 2026

Doesnt create redirects when you use batch move to change the category

Yes, that was not part of this PR. The batch would have to be slightly rewritten (onbeforesave-events etc.) which I not want to do here, too. Probably in a later PR when this is merged.

avatar brianteeman
brianteeman - comment - 1 Feb 2026

experience tells me that will never happen and PLEASE restyle the xml so that it is consistent with the rest of the UI

avatar bembelimen
bembelimen - comment - 1 Feb 2026

experience tells me that will never happen

if it will never happen, then so be it :-)

avatar exlemor
exlemor - comment - 1 Feb 2026

@bembelimen I am running into an issue on one of my test sites...

I followed the testing instructions (from a site built with nightly build, sample data, added French, multilingual sample data, added Joomla Patch Tester, RegularLabs Cache Cleaner, then applied download package for this PR 46807)

I change article-fr-fr alias to article-fr-fr-new-location went to frontend and it wrote in the Redirects plugin/area:

ScreenFloat Shot of Safari on 2026-02-01 at 21-17-13

is that because my site is in a sub-folder? I was a bit surprised by the non-SEF title under New URL
and then I check https://www.domain.com/_j61a4/fr/article-fr-fr, I get a 404 Page Not Found...

Also, shouldn't it be 404 Hits of 1?

avatar bembelimen
bembelimen - comment - 2 Feb 2026

@exlemor thanks for the test, added some multilingual routing things :-) Probably you could test again.

Add a Comment

Login with GitHub to post a comment