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

Add possibility to redirect to next_url via provided cookie #61

Merged
merged 11 commits into from
Oct 10, 2022

Conversation

avoinea
Copy link
Member

@avoinea avoinea commented Sep 18, 2022

See #58

raise ValueError(
f"Provider {provider} is already connected to current user"
)
if self.provider in self._provider_names:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Python f-strings

self.request.response.redirect(
self.context.absolute_url() + next_url
)
return _(f"redirecting")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to raise a lint error. (as you are not interpolating anything"

@ericof ericof merged commit 1c6f6e5 into collective:main Oct 10, 2022
@rstefko
Copy link

rstefko commented Aug 2, 2024

How is this supposed to work? What creates the next_url cookie?

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

Successfully merging this pull request may close these issues.

4 participants