User tests: Successful: Unsuccessful:
Summary of Changes
This PR fixes an issue where the alias does not reset properly when saving an article as a copy in the Joomla front-end. Previously, Joomla would append a # to the old alias instead of generating a new one based on the new title.
Changes made:
Updated the save method to reset the alias when saving an article as a copy.
Ensured that Joomla regenerates the alias correctly based on the new title.
Testing Instructions
Login to the Joomla front-end.
Find an article and click Save as Copy.
Enter a new title for the copied article.
Check the alias field after saving.
Actual Result BEFORE Applying This Pull Request
When saving an article as a copy, the alias remains the same as the original article, with a # appended.
Expected Result AFTER Applying This Pull Request
When saving an article as a copy, the alias field resets, allowing Joomla to generate a new alias based on the updated title.
Link to Documentation
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_content |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-03-01 11:49:48 |
Closed_By | ⇒ | raj20889 | |
Labels |
Added:
PR-5.2-dev
|
Hi @joomdonation,
Thanks for your feedback! I understand the concern regarding future behavior. Based on your suggestion, I’ll close this PR and open a new one to properly display the alias input in the edit article form by modifying edit.php.
I’ll make the changes and submit a new PR shortly.
Thanks again for the guidance!
Great. Thanks !
Hi @raj20889
Thanks for your work. Your change is mostly correct, however, it will cause wrong behavior in the future if we allow editing alias directly on the frontend (it is very likely this will happen), so I would suggest closing this PR
In case you want to try, I would suggest to open a new PR to show Alias input on edit article form. Should be easy by removing the if clause here https://github.com/joomla/joomla-cms/blob/5.3-dev/components/com_content/tmpl/form/edit.php#L54-L56 . That should address the issue #45010