A quick tip: If you want to replace the current document and history from your browser. Use the window.location.replace() or location.replace().

Navigate back on your browser to see the difference.



More Details: https://developer.mozilla.org/en-US/docs/Web/API/Window/location#Methods

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.