sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

Article copy locale does not apply to routePath type `page_tree_route` #661

Closed Quehnie closed 4 weeks ago

Quehnie commented 4 months ago
Q A
Bug? yes
New Feature? no
SuluArticleBundle Version 2.5.1
Sulu Version Specific version or SHA of a commit

Actual Behavior

Create an article which uses the page_tree_route type as routePath. Then copy the article into another language, in the UI it will show the right page version of the new language, but in the data the route path from the old site is copied. Which results into weird urls.

/de/neuigkeiten/firmenfest -> /en/neuigkeiten/company-party

Expected Behavior

Load the URL of the page with the target locale and add it into the data, if it does not exist remove the page from data and use /

Steps to Reproduce

See in Actual Behavior.

Possible Solutions

See in Expected Behavior

alexander-schranz commented 4 weeks ago

fixed in https://github.com/sulu/sulu/pull/7311