I am working with Craft 3 and in my controller, I am trying to do this
$this->redirect('https://foobar.test');
But it is throwing me back to the root url of my craft site. I am confused, what else do I need to do?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI am working with Craft 3 and in my controller, I am trying to do this
$this->redirect('https://foobar.test');
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');