I've seen this question already, but the top answers all suggest window.location.reload
. I've just discovered that this will actually do a POST
if your page was loaded with a POST.
I reckon I could do window.location.href=window.location.href
but that won't work if there's a hashtag in the URL I'm told.
So how can I get the browser to perform a GET on the current page, including query params (with or without the hash)?