#Slug localization issue: All languages have the same slug, and 'Publish changes' button activates on

3 messages · Page 1 of 1 (latest)

tropic reef
#

I'm creating my Payload app using npx create-payload-app --example localization. (https://github.com/payloadcms/payload/tree/main/examples/localization)
After seeding the database, I encountered an issue with the slugs for all Pages and Posts.
The problem is that the slug is limited to a single locale; it only gets the slug of the admin page's locale.

Every time I change the language in the admin page, the "Publish changes" button for posts/pages becomes active, as if a change has been made. All I did was press the "Publish" button and change the language.

GitHub

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for buildi...

worldly steepleBOT
twin juniper
#

Yes, the example doesn't feature a localized slug field. You need to write it yourself. Be aware that this will create many adjustments, since localized slug fields will might affect different files as well, i.e. links in the richtext editor, LocaleSwitcher and so on