How can I use url-aliases in additional languages without the language prefix?
From his old homebrew-CMS, my client has the following URLs:
- example.com/english-page => redirecting to example.com/en/node/1
- example.com/deutsche-seite => redirecting to example.com/de/node/1
I use Drupal 9.5.9, Redirect 8.x-1.8 and Pathauto 8.x-1.11. Default Language is German (de)
node 1 in German has url-alias '/deutsche-seite'
node 1 in its English Translation has url-alias '/english-page'
Opening the Site with the following URLs leads to different Results:
- example.com/en/english-page => OK, opens in english
- example.com/de/deutsche-seite => OK, opens in german
- example.com/deutsche-seite => OK. Redirects to /de/deutsche-seite which opens in german.
- example.com/english-page => Not OK, throws a 404.
How can I achieve that example.com/english-page redirects to example.com/en/english-page or renders the english translation of node 1? I did not find any settings on pathauto or languages, and if I try to create an Redirect manually, the redirect-module does not allow me to enter a path without language prefix (https://www.drupal.org/project/redirect/issues/3208013)
Thanks a lot for any hint... Kind regards, mullzk