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 bruger efter login #968

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

rasmusselsmark
Copy link
Contributor

Se #762

Brug next query string parameter til at redirect'e brugeren tilbage til f.eks. aktivitetsside efter login. Brugen af next er dokumenteret på f.eks. https://docs.djangoproject.com/en/4.2/topics/auth/default/#the-login-required-decorator:

will use the value of redirect_field_name as its key rather than "next" (the default).

@what-the-diff
Copy link

what-the-diff bot commented Sep 24, 2023

PR Summary

  • Change in 'activities.html'
    The update in members/templates/members/activities.html allows appending additional information to the URLs for the "Sign Up" and "Waitlist" buttons. This change can help keep track of data related to these actions.

  • Modifications in 'activity_signup.html'
    In the members/templates/members/activity_signup.html file, the adjustments made permit embedding a query parameter to the URL for the "Login" link. It would assist in managing data or actions linked to the login process.

  • Adjustment in 'header.html'
    The alteration in the members/templates/members/header.html file also incorporates a query parameter to the URLs for the "Login" link, similar to the previous update. This enhancement will support data logging or user authentication-related functionalities.

@rasmusselsmark
Copy link
Contributor Author

Kiggede på om det også nemt kunne gøres for bruger-oprettelse, men kræver lidt mere, så har oprettet #969

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.

2 participants