Fix #3536201: Update path alias when node language changes
This MR addresses the issue where the custom path alias language does not update when the language of a node is changed.
Problem:
When a node is created with a specific language, the path alias is saved with that language code. Later, if the node’s language is changed, the path alias retains the old language code, causing it not to display correctly when editing the node. This occurs particularly when using custom URL aliases (automatic aliases work as expected).
Solution:
Now, when you change a node’s language, the URL alias language updates to match it, but the actual URL you set stays the same.
Steps to Test Locally:
- Create a content node with a language (e.g., Japanese).
- Set a custom path alias.
- Change the node language (e.g., to Hindi).
- Edit the node — the path alias now correctly updates to the new language.
Closes #3536201