Uniq alias for all language

Created on 23 March 2017, over 7 years ago
Updated 22 October 2024, 2 months ago

Hello, in some project i need same alias for all language, without translate entity to other language. I think it exists sense.

That i meen, create button to generate source language alias for all language.
Have two language EN and RU
Taxonomy exemple > term name HTC
How it work know
path En > /en/htc
path RU > /ru/taxonomy/term/1
I need translate taxonomy just for create alias? I think is not good for some reason.
but i need
path En > /en/htc
path RU > /ru/htc

????

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡²πŸ‡©Moldova pavelculacov Chisinau

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany hchonov πŸ‡ͺπŸ‡ΊπŸ‡©πŸ‡ͺπŸ‡§πŸ‡¬

    Our use case is like this that we have a content type that is not translatable, but the site has multiple languages enabled without language detection enabled and it is possible to create content in that content type for different languages. However since pathauto automatically creates the aliases with the language of the entity if we would create content in a non-default site language then we cannot visit the url of the page. I think that we need an approach similar to πŸ› If you don't want to translate your URL alias, the original URL alias won't work with your translations Needs work that will set the language to undefined in case the entity is not translatable. The only issue I can think of is though what should happen if the content type is made translatable at a later point, so this needs to be defined and tested how the aliases old and new will behave.

  • πŸ‡©πŸ‡ͺGermany geek-merlin Freiburg, Germany

    @hchonov: Nice to meet you again here. We face a similar problem and your approach pointed me in the right direction.

    Made an overview 🌱 Overview of Pathauto language problems and approaches Active with some more pointers and what core does ("und if entity OR path field is untranslatable"). HTH!

Production build 0.71.5 2024