opencart javascript redirect to login removes the extra GET params

so from a page, tried to redirect to route=account/login with extra GET params index.php?route=account/login&route=common/custom_order using vanilla javascript

window.location.href = 'index.php?route=account/login&redirect=common/custom_order';

but it always removes the extra GET params so it always set the url back to route=account/loginwhich I don't have any ideas. I'm trying to set some extra redirection if there's a redirection GET request pass on the url. Any ideas, help is greatly appreciated.



Read more here: https://stackoverflow.com/questions/67394427/opencart-javascript-redirect-to-login-removes-the-extra-get-params

Content Attribution

This content was originally published by Juliver Galleto at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: