Unexpected result translating URL (URL-Key)

I’m getting some unexpected results with translating URLs using the URL-Key. I wonder if anybody can reproduce this:

My folder set up (two languages dutch is my default):

1-projecten

  • 1-project-a
  • project.en.txt (URL-Key: projects)
  • project.nl.txt
  • 2-project-b
  • project.en.txt (URL-Key: projects)
  • project.nl.txt

projecten.en.txt (title only: Projecten)
projecten.nl.txt (title only: Projects)

Using the URL-Key: projects I expect to get this URL:
domain/en/projects/project-a

Instead I’m getting this:
domain/en/projecten/projects
The last segment is obviously not correct. Btw, my breadcrumbs display properly.

When I leave the URL-key out the URL is as expected:
domain/en/projecten/project-a

Kirby 2.0.7
MAMP with PHP 5.6.2

Thanks,
Marco

ps: Nice new forum!

Hi,

If I’m not mistaking you need to put the URL Key in the main folder to get what you wanted, not in the sub-folders:

1-projecten
projecten.en.txt (URL-Key: projects)
projecten.nl.txt
1-project-a
project.en.txt
project.nl.txt
2-project-b
project.en.txt
project.nl.txt

… of course that works just fine, very embarrassing, going to hide underneath some big rock :wink:

1 Like