Use local storage to set language when logged-out

Hi all,

I’m building a bunch of landing pages & home page on Bubble, that most users will access not being logged-in.
I’m using the Local Storage Plug-in in order to save the language the user should see based on origin or own preference.

I force the local storage to store “lang=es_es” upon page load

I see it being saved in the Browser correctly:

Then, still upon Page load, I use that to force a page refresh with the correct params “?lang=es_es”

I don’t know why, but the URL shows an empty param: “?lang=”
Screenshot 2024-03-06 at 18.02.13

What am I doing wrong?

Thanks for your help!

Up! Still looking for a solution :slight_smile:

If you shared an editor link then may someone be able to identify the problem

Thanks Salem, sorry I’m new to this forum, I guess this is the editor link? I think I made it available to view:

Hi @jeremie.m

I just found this page that might explain the behavior you’ve observed: