Reset the target url after oauth login

This is required for the cloudron button to work for users
which are not logged in
This commit is contained in:
Johannes Zellner
2015-10-01 16:11:39 +02:00
parent a7ee8c853e
commit c552917991
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -19,7 +19,8 @@
// clear oauth2 state
delete window.localStorage.oauth2State;
window.location.href = '/';
if (window.localStorage.returnTo) window.location.href = window.localStorage.returnTo;
else window.location.href = '/';
}
</script>