opencart javascript redirect to login removes the extra GET params

  opencart, opencart-3, php

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.

Source: Ask PHP

LEAVE A COMMENT