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

Keep context after User sign in #165

Merged
merged 1 commit into from
Dec 15, 2016

Conversation

danguita
Copy link
Contributor

Connects to #124.

What does this PR do?

This one updates the after_sign_in_path behavior at User (GobiertoCore) level to take a referrer URL into account. To do so, the HTTP_REFERER is passed through the sign in form to keep a context to which we can redirect on success.

How should this be manually tested?

Just check that the context is kept after a sign in action. In example, a sign in request from http:https://madrid.gobierto.dev/presupuestos/ejecucion/2016 should redirect back to the same URL.

@ferblape
Copy link
Member

Works ok 💪 !

@ferblape ferblape merged commit 2d476fe into master Dec 15, 2016
@ferblape ferblape deleted the 124-keep-context-after-user-sign-in branch December 15, 2016 11:28
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.

None yet

2 participants