Jump to content

Redirection Issue


Recommended Posts

I am using the following code

if (!$this->context->customer->isLogged() && $this->php_self != 'authentication' && $this->php_self != 'password')

   {
        Tools::redirect('index.php?controller=authentication&back=enquiry');
   }

Its goes to login page, the login form also have "back" hidden field which have "enquiry" as value but its not redirecting it to "enquiry" page, its always redirecting to "my-account" page only.

Whats wrong there?

Any help will be highly appreciated.

Link to comment
Share on other sites

×
×
  • Create New...