I am working with Craft 3 and in my controller, I am trying to do this


But it is throwing me back to the root url of my craft site. I am confused, what else do I need to do?


Forgot to add the return keyword :(

return $this->redirect('https://foobar.test');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.