Saving language from panel removes `url` option

Hello,
quick thing I noticed in Kirby v3.1.1, when I edited a language from the panel, my custom 'url' => '/' was removed. Also, it seems that it returns array(), not [] like in config.php etc (just wondering).

Is there anything I can do about issue no. 1 though?

Thank you and have a good day,
S1SYPHOS

I created an issue on GitHub.

Apart from re-adding the missing URL, I guess not. But on the other hand, you probably don’t usually have to edit languages once they are created? After all, this only happens if you edit an existing language, not when creating new languages?

That’s true, but you never know when a customer checks out stuff in the backend and hits SAVE - also, it seems weird that it does, given that it passes an array, updating all respective keys in the existing array …

I know it’s not a solution to the bug, but if the user shouldn’t fiddle with the language settings, you can set the languages property to false in the config file or disallow access to the settings page in the user role permissions.

This is now fixed on the develop branch.

1 Like