starting a path alias with a langcode has weird behaviours

Created on 21 March 2024, 3 months ago

Problem/Motivation

If you start a path alias with a langcode, either by coincidence or because you think you need to include it, bad things happen.

Steps to reproduce

1. Set up a site to have two languages, say English and French
2. Create a node with both languages
3. Try to set the alias for the English translation to '/fr/yes-this-is-confusing'

The alias is NOT applied to the en translation, but instead gets put on the fr translation where it ends up showing as '/fr/fr/yes-this-is-confusing' (repeated prefix) in the form.

TODO: test what happens when trying to set that alias on the fr translation.

Proposed resolution

Either tell the user they can't use the langcode of an active language as a prefix, or handle it properly.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
PathΒ  β†’

Last updated 6 days ago

  • Maintained by
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024