Merge pull request #1393 from longsleep/redirect_url-on-setup-support

Pass redirect_url through setup form
This commit is contained in:
Lukas Reschke 2016-09-13 16:55:07 +02:00 committed by GitHub
commit e89ce4a681
1 changed files with 11 additions and 0 deletions

View File

@ -79,6 +79,17 @@ $(document).ready(function() {
form.append(input); 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 // Submit the form
form.appendTo(document.body); form.appendTo(document.body);
form.submit(); form.submit();