Is it correct when you change the ‘slug’/‘url’ with the panel, Kirby tries to rename the directory file? I had the following issue:
- The ‘gallery’ directory contains a Dutch translation file with ‘slug: gallerij’. This contains a typo. In Dutch, it should be ‘galerij’, not ‘gallerij’.
- As an admin I change the slug with the panel from ‘gallerij’ to ‘galerij’. So it presents the translated slug and not the directory name.
- Now it tries to rename the English directory name ‘gallery’ to ‘galerij’ and creates a duplicate directory and fails to remove the old ‘gallery’ directory.
- This created errors because some code uses ‘gallery’ to find the title and url for a link.
I expected only the slug field for the Dutch translation file would change. Is this expected behavior and how should I make sure the user cannot change directories, just the slug inside the translations? I have the latest version of Kirby.