The issue
When editing the content of a text-block, the editor adds links to pages that look like this: https://example.com/de/@/page/NIHb6VZafWPPLDoA
. These links do not resolve to anything, despite pointing to an existing page.
Previously created links, with an older version of Kirby look like this: https://example.com/@/page/NIHb6VZafWPPLDoA
. These links resolve to their target.
Apparently, at some point, Kirby started adding the language to the URLs in front of the “@”, which seems to be causing this problem?
The Setup
I am guessing Kirby has trouble with the 'url' => '/'
preference in the de.php
file? However the client realls wants to have German as the default language and no ‘/de/’ in their German URLs.
<?php
return [
'code' => 'de',
'default' => true,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'de_DE.UTF-8'
],
'name' => 'Deutsch',
'url' => '/'
];
My Question
Is this a bug, or am I using Kirby wrong? How do I need to configure it to make it generate working links in texts edited in the panel? How should I go about solving this or building a workaround until the bug is fixed?
Thanks!