diff --git a/core/js/setup.js b/core/js/setup.js index 1aad766322..9190310d5a 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -79,6 +79,17 @@ $(document).ready(function() { form.append(input); } + // Add redirect_url + var redirectURL = getURLParameter('redirect_url'); + if (redirectURL) { + var redirectURLInput = $(''); + redirectURLInput.attr({ + name: 'redirect_url', + value: redirectURL + }); + form.append(redirectURLInput); + } + // Submit the form form.appendTo(document.body); form.submit();