Reputation: 566
I am currently trying to change the language according to the user choice for my website, i have a dropdown that call a method via an ajax action link to change the language settings. The problem is that the language don't change right the way, i have to change to an other page to see a difference. I would like to know if there is a way to refresh the actual page juste like when you press F5 in your browser.
Thanks in advance.
Upvotes: 0
Views: 316
Reputation: 2542
Better will be modify the current Url with new language and do a redirect.So it will redirect to same page with updated url.
Upvotes: 0
Reputation: 5813
JavaScript:
window.location.reload(true);
Specifying true
instructs the browser to always reload from the server instead of potentially using it's cache.
Upvotes: 2