How to remove “#” from URL, after refresh page

Use this Script in your Html.

<script>
window.location.replace(“#”);

// slice off the remaining ‘#’ in HTML5:
if (typeof window.history.replaceState == ‘function’) {
history.replaceState({}, ”, window.location.href.slice(0, -1));
}
</script>

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *