What is the difference between window.location.assign() and window.location.replace(), when both redirect to a new page?
window.location.assign()
window.location.replace()
The difference is how history is handled. "Replace" won't give you history, "assign" will.