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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user