7 ms·
How about redirecting the first URL to the second? Updating the fragment part via JavaScript shouldn't hit the server so that wouldn't be affected by the redir
by tower10 18y ago
How about redirecting the first URL to the second? Updating the fragment part via JavaScript shouldn't hit the server so that wouldn't be affected by the redirect. If you did get into a situation where it inadvertantly redirects then you could just check the referrer to prevent that.
- mountain_man 18y agoI don't understand what you mean. If you update the location with location.href, the page will reload. I think the poster wanted to avoid reloads, hence the whole point of using rsh.
- tower10 18y agoThe page doesn't reload when ony the fragment part is changed.