When a user clicks to a page using a link on a previous page, is it possible for the target page to, on its own accord, remove its own URL from browser history (without sign
Using javascript, you could use replace
method of window.location
:
window.location.replace(String url)
Check the documentation here for more details
It looks like this is not possible.
The browser history will store the URL. The best that can be done is either to prevent the URL from going into the back/forward buttons, or use "techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it".
In some circumstances, sending a 302 Found
response and redirecting to another page could work. If you need to hide query string parameters, you could set a session cookie with them on the initial, redirected response, then use them to serve the response on the real page. Just remember to clear the cookie when you serve the page.
But this is an entirely server-side way to do it, and while you can hide sensitive data, you'll still see some page on the domain in the history.