I have a search page on my system. Due to pagination I am using form data via GET. However, when I go to search something, the URL is, for example:
http://sistema.com/busca.php?nome=silva
Researching I found a "workaround" that after doing the search it returns the normal URL, not making it visible to the user. I used this:
if(typeof window.history.pushState == 'function') {
window.history.pushState({}, "Hide", "http://sistema.com/busca.php");
}
At first it works, with some delay (lets the user see it as a flash and already changes the URL), but it works.
The problem is when I press the "Back" of the browser. It leaves the URL with the parameters again. How to solve this browser revolution? Is there a more elegant way to mask these parameters?