Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP/HTTPS depends of locale #158

Closed
AntoineLemaire opened this issue Jul 21, 2015 · 0 comments
Closed

HTTP/HTTPS depends of locale #158

AntoineLemaire opened this issue Jul 21, 2015 · 0 comments

Comments

@AntoineLemaire
Copy link

Is there a way to define a locale as https an others as http ?

Like for example:

jms_i18n_routing:
    locales:
        - fr_FR
        - en_FR
        - de_DE
        - es_ES
    hosts:
        fr_FR: mywebsite.fr
        en_FR: en.mywebsite.fr
        es_ES: mywebsite.es
        de_DE: mywebsite.de
    secure:
        fr_FR: true
        en_FR: true
        es_ES: false
        de_DE: true

To get

fr_FR => https://mywebsite.fr
en_FR => https://en.mywebsite.fr
de_DE => https://mywebsite.de
es_ES => http://mywebsite.es

Actually, if I generate url with url('route_name',{'_locale':'es_ES'}) in a Twig of a page of fr_FR, I get https://mywebsite.es instead of http://mywebsite.es

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

No branches or pull requests

1 participant