#41116 closed defect (bug) (duplicate)
Permalink localization being taken from users language
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Permalinks | Keywords: | |
| Focuses: | Cc: |
Description
I was just working on a clients site, that uses a foreign global locale (Swedish, to be precise).
They have permalinks set to the default localization, so archive is Arkiv, WooCommerce products uses Produkt and so forth.
In my user profile I have the locale set to EN, and needed to refresh the permalinks after a change. When I visited the permalinks edit screen, it was all localized to my user language, including the actual permalinks. So I saw "archive"/"product".
After saving, the site literally "broke". All the links using foreign permalinks stopped working. I had to switch my account locale to match the sites global setting (again, Swedish) and then re-save. This switched it all back to normal.
Steps to reproduce
- Switch your user locale to something different than the main sites /wp-admin/profile.php.
- Visit the /wp-admin/options-permalink.php screen, and click save.
- Permalinks now will follow your user locale, where-as it seems more logical for them to always use the sites global language.
Change History (2)
#1
@ocean90
21 hours ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
- Version 4.8 deleted
#2
@bradadams
21 hours ago
Aha, that is true @ocean90 - my bad. Although I must say that first issue is quite poorly written 😬
It doesn't mention the word permalink in it at all...
Hello @bradadams, welcome to WordPress Trac!
Thanks for your report, we're already tracking this issue in #39587.