Merge pull request #1393 from longsleep/redirect_url-on-setup-support
Pass redirect_url through setup form
This commit is contained in:
commit
e89ce4a681
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue