# Switch language via URL?

**URL:** <https://meta.discourse.org/t/switch-language-via-url/28937>\
**Category:** Support\
**Created:** [18 Maggio 2015, 6:45am UTC](https://meta.discourse.org/t/switch-language-via-url/28937 "2015-05-18T06:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![jeanmonod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeanmonod/32/119952_2.png) [@jeanmonod](https://meta.discourse.org/u/jeanmonod)\
**Post date:** [10 Aprile 2018, 4:57pm UTC](https://meta.discourse.org/t/switch-language-via-url/28937/17 "2018-04-10T16:57:24Z")

</div>

> [@simon](#):
>
> Adding the ability to set the locale through a query string could be done through a plugin

Ok, I will go the plugin way to start, let’s see then if you have the interest to integrate that into the core.

> [@simon](#):
>
> There is an issue with setting the locale for anonymous users for on sites that are using a CDN

I’m not sure I understand the issue correctly, but I can understand the potential problem of caching pages that are built upon a user header such as `HTTP_ACCEPT_LANGUAGE `. Here we are talking about a query string, so the CDN should cache the answer separately…

> [@simon](#):
>
> For this reason, I think the approach that you have brought up in this post - Set language for SSO users - would be a better candidate for a PR.

It’s really two separate topics:

- The query string will help me to provide the appropriate interface to an anonymous user.
- The SSO extension should help me to avoid all user accounts to be created with the default locale.

Ok, in the coming days I will start to work on those two plugins, just ping me if you think I should do PR instead.

Thanks for your help so far

---

_[View the full topic](https://meta.discourse.org/t/switch-language-via-url/28937)._
