-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Open
Copy link
Description
Bug report for Strapi 5 multiple locales where I have configured only one locale
- For a single language, everything works as expected.
- When using multiple languages, the URLs are not generated correctly. Example:
- I created an article with the German localization article-one-de.
- Then I added a new localization for Australia (de_AT).
- In the sitemap, the German URL appears correctly:
http://localhost:3000/de/articles/article-one-de
- However, the Australian URL appears incorrectly with an unknown/placeholder value, like:
http://localhost:3000/de_AT/articles/bmrook-3-k-4-hk-670-yquxy-36-s-0-p
- When I manually edit the Australian URL to the correct value (e.g.,
article-one-for-at
), it also automatically changes the German URL to match (article-one-for-at
), which is incorrect.
The system seems not to allow saving differentslugs/URLs
per localization — any change affects all languages simultaneously.
Steps to reproduce the behavior
- Add a new entry for any content for multiple localize
- goto to the sitemap webtool addon
- click to re-generate
- Open the sitemap table on click, and Go to the sitemap or open localhost:/api/sitemap/index.xml
- Find the slug/id ( you see the random value instant of the actual slug 'k-4-hk-670-yquxy-36-s-0-p`
Expected Behavior:
- Each localization (language/region) should allow its independent URL/slug. example
- de-DE:
http://localhost:3000/de-DE/articles/my-first-article-1
- de-DE:
http://localhost:3000/de-CH/articles/my-first-articula-one
- ....... and so on..
- de-DE:
- Updating a localized URL should only affect that specific language, not the others.
- The sitemap should correctly reflect each localized URL separately.
Are there any solutions for that?
SalahAdDin
Metadata
Metadata
Assignees
Labels
No labels