Skip to content

Commit

Permalink
add siteRedirectUri option
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Apr 28, 2020
1 parent c3e0aa7 commit dec9826
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion view/signUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,18 @@
content: span,
icon: "success",
}).then(function () {
window.location.href = '<?php echo $global['webSiteRootURL']; ?>user?redirectUri=<?php print isset($_GET['redirectUri']) ? $_GET['redirectUri'] : ""; ?>';
<?php
if(!empty($_GET['siteRedirectUri'])){
?>
window.location.href = '<?php echo $_GET['siteRedirectUri']; ?>';
<?php
}else{
?>
window.location.href = '<?php echo $global['webSiteRootURL']; ?>user?redirectUri=<?php print isset($_GET['redirectUri']) ? $_GET['redirectUri'] : ""; ?>';
<?php
}
?>

});

} else {
Expand Down

0 comments on commit dec9826

Please sign in to comment.