Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Option to turn off the language part in contao url for a certain main language #8063

Closed
cmichael-de opened this issue Oct 13, 2015 · 9 comments
Labels

Comments

@cmichael-de
Copy link

Current situation there is no option to turn off the language shortcode:
domain.tld/de/start.html (for this example the main language: de)
domain.tld/en/start.html

Nice to have would be an option to turn off the language shortcode for a certain main language:
domain.tld/start.html (for this example the main language: de)
domain.tld/en/start.html

@aschempp
Copy link
Member

aschempp commented Oct 13, 2015 via email

@fritzmg
Copy link
Contributor

fritzmg commented Oct 14, 2015

Duplicate of #5619 ;)

Isn't there an extension already that provides this functionality? Can't find it right now.

@Aybee
Copy link
Contributor

Aybee commented Oct 14, 2015

👍

@aschempp You can do that by manually adding the language to the page alias.

adding? I think he would like to remove one /lng/ not to add something. Is this realy possible by adding something to the alias?

I think what he wants is:
my-german-produkt.de/
my-german-produkt.de/en/

If you have a commercial TLD I think its nice without such a feature
my-german-produkt.com/de/
my-german-produkt.com/en/

Maybe a checkbox in page website root hide language from URL. But this must only be possible within one website root, independent of fallback language setting.

  • root de, falback NO, hide in URL
  • root en, fallback YES, don't hide in URL

@fritzmg
Copy link
Contributor

fritzmg commented Oct 14, 2015

@Aybee: I think @aschempp meant to disable the language fragment entirely and then manually prepending de/ or whatever to each page alias of the respective site tree. Though that's a bit cumbersome.

@cmichael-de
Copy link
Author

Yes Aybee is right! I would like to remove the "de".

It would be nice to say:

  1. blabla.de is german content
  2. blabla.de/en is english content
  3. blabla.de/it is italiano

In case 1.) I would like to turn off the "de" but currently not an implemented feature ;-(.

I am not really sure if my wish is a duplicate of #5619 ? Cause the fallback language can be different from blabla.de/de ... de is the Mainlanguage for the Domain ... The Fallbacklanguage is the language which is used when users language configuration does not match any website lang. And in this case I would deliver the english language blabla.de/en .

I just want an option to say that the clean url (=without lang part) leads to a specific language ... defined by admin :-).

Correct me if I am wrong and it is already possible and I am just to blind.

@fritzmg
Copy link
Contributor

fritzmg commented Oct 14, 2015

Yes, #5619 only mentions the possibility for the "main" language, however when implemented at all, it would probably get implemented as a general option of the website root page, not a general option in the settings, that only applies to the fallback language (otherwise this option might not be useful in certain multi-domain setups).

@Aybee
Copy link
Contributor

Aybee commented Oct 14, 2015

@Aybee Maybe a checkbox in page website root hide language from URL. But this must only be possible within one website root, independent of fallback language setting.

  • root de, falback NO, hide in URL
  • root en, fallback YES, don't hide in URL

That's why I told above it has to be an option in website root and has to be independent from fallback language.

Also if you set the hide language parameter in one root, it must be blocked in other roots as it only should be allowed to set this for one language.

@JLNNN
Copy link

JLNNN commented May 13, 2017

Any updates on this? :)

@leofeyer
Copy link
Member

See contao/core-bundle#1051 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants