Hello,
I am a newbie trying to build a website using Drupal 8.
I have created a "Contact Us" page in English. URL of the said page is - http://my_ip_address/Contact

I have created another "Contact Us" page in Hindi language. Its URL is - http://my_ip_address/hi/Contact

Instead of this URL, I want to display it as - http://my_ip_address/Contact
for the Hindi language page as well. ie I want to remove the .../hi/... part.

But the URL alias option does not permit me to use same Alias twice.

The selection of language using session variable for that specific user and url to be displayed should be independent of the language.

Is there any way to resolve this issue?

Comments

vinayak nair’s picture

hi,
since, same content translated in different language would be different in each type therefore seperate url is made for each content based on language, you simply cannot point to 2 different content using a single url. even pathauto module cannot achieve this .
so, try some different ways to do it.
But one alternative option is to achieve this by using cookies to detect a user's language instead of the path or URL.