How do I add a query string value to a URL, then refresh that page?
The current url looks like: /foo/bar
I want to reload as /foo/bar?tabIndex=4
function onSomethingComplete() {
window.location.search = "tabIndex=4";
window.location.reload();
}
Thanks!
window.location.searchalready does a reload itself.