Skip to content
New issue

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

Redirect to came_from #58

Open
avoinea opened this issue Oct 15, 2021 · 0 comments
Open

Redirect to came_from #58

avoinea opened this issue Oct 15, 2021 · 0 comments
Milestone

Comments

@avoinea
Copy link
Member

avoinea commented Oct 15, 2021

self.request.response.redirect(self.context.absolute_url())
return "redirecting"

Consider redirecting to ?came_from or at least move this code within another method to be able to easily customize/override it.

Another option would be to add a new control panel field to be able to redirect to a custom page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants