Get the current hash from the url
Read all the arguments from the current url
Return the current root URL
Check if the url contains the searched hash
Remove the arguments from the current url
Update the hash of the url
Replace the url in the browser
url to replace
Optionaldata: unknownoptional data to pass to replaceState
Return the current url without the url parameters