I can redirect the user, it works but it has 302 status, how I can redirect a user and add 301 so it will be permanent redirect?
request.redirect('/dashboard')
I can redirect the user, it works but it has 302 status, how I can redirect a user and add 301 so it will be permanent redirect?
request.redirect('/dashboard')
Copyright © 2021 Jogjafile Inc.
You can add the status you need as a
statusparameter:If using Masonite 2.2+ you can also create a
Redirectroute: