mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #1393 from longsleep/redirect_url-on-setup-support
Pass redirect_url through setup form
This commit is contained in:
commit
e89ce4a681
1 changed files with 11 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue