We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version: 4.16.4
there is no easy way to make a redirect the external url inside controller, ex.
self.response.redirect('https://google.com')
the "add_query_params" function expects only inner url and returns back empty string.
current workaround is to add header manually:
def home(self, view: View): url = 'https://google.com' res = self.response.redirect(url) res.header_bag.add(Header("Location", url)) return res
No response
macOS
Monterey 12
4.16.4
The text was updated successfully, but these errors were encountered:
Actually it should possible to do it using self.response.redirect(location="https://google.com"). I will check if it's working on my side.
self.response.redirect(location="https://google.com")
Sorry, something went wrong.
Also reported in #768
Today in V4, 'Controller' object "self" has no attribute 'response'.
No branches or pull requests
Describe the bug
version: 4.16.4
there is no easy way to make a redirect the external url inside controller, ex.
self.response.redirect('https://google.com')
the "add_query_params" function expects only inner url and returns back empty string.
current workaround is to add header manually:
Expected behaviour
No response
Steps to reproduce the bug
No response
Screenshots
No response
OS
macOS
OS version
Monterey 12
Browser
No response
Masonite Version
4.16.4
Anything else ?
No response
The text was updated successfully, but these errors were encountered: