Skip to content

Commit

Permalink
Merge pull request #1393 from longsleep/redirect_url-on-setup-support
Browse files Browse the repository at this point in the history
Pass redirect_url through setup form
  • Loading branch information
LukasReschke authored Sep 13, 2016
2 parents 0543661 + 1a240a2 commit e89ce4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/js/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ $(document).ready(function() {
form.append(input);
}

// Add redirect_url
var redirectURL = getURLParameter('redirect_url');
if (redirectURL) {
var redirectURLInput = $('<input type="hidden">');
redirectURLInput.attr({
name: 'redirect_url',
value: redirectURL
});
form.append(redirectURLInput);
}

// Submit the form
form.appendTo(document.body);
form.submit();
Expand Down

0 comments on commit e89ce4a

Please sign in to comment.