Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language code in UUID link added via panel (writer field) when translate is set to false #7034

Closed
Heave-be opened this issue Feb 26, 2025 · 1 comment

Comments

@Heave-be
Copy link

Heave-be commented Feb 26, 2025

Description

Automatically created UUIID links via the panel (for example: via a writer field), include the language code even though translate is set to false.

i.e.:

http://example.test/nl/@/page/4lkRfJqwiTFyVLVr
instead of
http://example.test/@/page/4lkRfJqwiTFyVLVr

The first link returns the error page since there isn't an automatic redirection.

Expected behavior

The custom UUID url created by the panel shouldn't include the language code.
Now it's impossible to properly use translatable Custom language variables (for code clarity and a possible future translation).

To reproduce

  1. Setup the Kirby CMS starterkit
  2. Set translate: false inside config.php

config.php

translate: false
  1. Create one language file inside the languages folder i.e. nl.php

languages/nl.php

<?php

return [
    'default'       => true,
    'code'          => 'nl',
    'direction'     => 'ltr',
    'locale'        => 'nl_NL',
    'name'          => 'Nederlands',
    'url'           => '/',
    'translations'  => [],
];
  1. Go into the panel and open the first 'note'
  2. Edit the text field and add a link to another page via the pop-up
  3. When viewing the page, the URL added via the panel has the language code added

Kirby CMS

  • Kirby CMS 4.6.1
  • Starterkit
@afbora
Copy link
Member

afbora commented Feb 26, 2025

Duplicated of #6865 and will be available in next release as 4.7.0

@afbora afbora closed this as completed Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants