Details
-
Improvement
-
Resolution: Fixed
-
High
-
None
-
5.4.6
-
None
Description
This issue was converted to the documentation issue as the result of investigation, see discussion for more details. Original description:
From EZP-26069.
If you have a multi language site and rename the name of a translation, the old URL won't be accessible any more.
Steps to reproduce
Create the folder "In ENG #001" in English:
http://5-4.ezpublish.dev/In-ENG-001
SELECT action, id, is_alias, is_original, lang_mask, text FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112 ORDER BY id DESC LIMIT 20;
+------------+-----+----------+-------------+-----------+------------+ | action | id | is_alias | is_original | lang_mask | text | +------------+-----+----------+-------------+-----------+------------+ | eznode:127 | 112 | 0 | 1 | 3 | In-ENG-001 | +------------+-----+----------+-------------+-----------+------------+
Translate the folder "In ENG #001" based on "None" to Portuguese and name it "In POR #001"
http://5-4.ezpublish.dev/In-POR-001
SELECT action, id, is_alias, is_original, lang_mask, text FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112 ORDER BY id DESC LIMIT 20;
+------------+-----+----------+-------------+-----------+------------+ | action | id | is_alias | is_original | lang_mask | text | +------------+-----+----------+-------------+-----------+------------+ | eznode:127 | 112 | 0 | 1 | 3 | In-ENG-001 | | eznode:127 | 112 | 0 | 1 | 5 | In-POR-001 | +------------+-----+----------+-------------+-----------+------------+
Edit in Portuguese the folder "In ENG #001" and rename "In POR #001" to "In POR #002"
http://5-4.ezpublish.dev/In-POR-002
SELECT action, id, is_alias, is_original, lang_mask, text FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112 ORDER BY id DESC LIMIT 20;
+------------+-----+----------+-------------+-----------+------------+ | action | id | is_alias | is_original | lang_mask | text | +------------+-----+----------+-------------+-----------+------------+ | eznode:127 | 113 | 0 | 0 | 4 | In-POR-001 | | eznode:127 | 112 | 0 | 1 | 3 | In-ENG-001 | | eznode:127 | 112 | 0 | 1 | 5 | In-POR-002 | +------------+-----+----------+-------------+-----------+------------+
"In POR #001" does not work anymore (404).
http://5-4.ezpublish.dev/In-POR-001