User tests: Successful: Unsuccessful:
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
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)
Nothing happened
When option is set to "manually" you get in the backend:

When option is set to "yes", you can check the redirect extension (System => Redirects) to see the new redirects appearing.
To @rachelwalraven and especially @HLeithner for feedbacks, ideas and concepts.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_content com_menus com_redirect Language & Strings Libraries Front End Plugins |
| Labels |
Added:
Language Change
PR-6.1-dev
|
||
Great idea
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
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.
I have tested this item ✅ successfully on 9afea6f
I have tested this item ✅ successfully on 9afea6f
Redirects are automatically created when URLs change. Both automatic and manual modes work as expected.
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)
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
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...)
Isnt it confusing to enable it in plugin - especially as its only for supported components which the user can't determine
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)
I love the idea of this functionality but better to get it right than have to fix it later
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
| Labels |
Added:
Feature
|
||
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.
Doesnt create redirects when you use batch move to change the category
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.
experience tells me that will never happen and PLEASE restyle the xml so that it is consistent with the rest of the UI
experience tells me that will never happen
if it will never happen, then so be it :-)
@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:
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?
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.