#238: Remove hash from URL with JS instead of full redirect
This commit is contained in:
@ -60,18 +60,17 @@ async function newPasswordFunc() {
|
||||
return
|
||||
}
|
||||
|
||||
/**
|
||||
* @TODO: #238, this wont work if we redirect to the login page
|
||||
* Find a way to just "close" this screen instead of redirecting
|
||||
*/
|
||||
gameStore.addNotification({
|
||||
title: 'Success',
|
||||
message: 'Password changed successfully'
|
||||
})
|
||||
window.location.href = '/'
|
||||
|
||||
window.history.replaceState(null, '', window.location.pathname)
|
||||
emit('switchToLogin')
|
||||
}
|
||||
|
||||
function cancelNewPassword() {
|
||||
window.location.href = '/'
|
||||
window.history.replaceState(null, '', windowlocation.pathname)
|
||||
emit('switchToLogin')
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user