ZiedDams Posted July 19, 2021 Share Posted July 19, 2021 Hi, i created a FrontController and im handling my ajax requests inside of it. in some case i need to redirect the user to the login page base on the ajax requests data. im using Quote Tools::redirect('index.php?controller=authentication?back=my-account'); to redirect but it return the page content to the js success function . here my code and thank you. Link to comment Share on other sites More sharing options...
Ress Posted March 3, 2022 Share Posted March 3, 2022 You cannot redirect to another page in the controller if it is in an ajax request. You could do the redirect in js success function. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now