I have the situation that I change some local storage information. After this I want to do a ‘reload’. Searching I read to use ‘wix-location’ so I read that documentation page here . Very nice you can get all parts of the URL. For starters, I test the function with a hardcoded URL. The code where I use it is attached to an image like this
When I click on the image which is linked to this snippit, the session is set, and an image is hidden/shown. However, the next part is to open a page. This code is working as long as I’m not on the page itself.
Question: What do I need to change to ‘reload’ the page itself?
Yep, that does do a reload. I’ll see if i can live with it for it reloads the site. I’m not a huge fan of that for it reacts different then opening a page. E.g. header/footer doesn’t stay frozen but also reloads. In this case I don’t require that. But it’s a solution Thanks
i am confused, i am not a coder but i have the same problem when trying to reload my home page, the part of the code that says wixLocation.url. do i have to leave it the way it is or use “wixLocation.home”
@giri-zano Good one, although I noticed that Yisrael mentions it will be this Sunday that the fix is released, I was thinking it was already up and running too.