Skip to content

separate login and signup redirects #2384

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChristopherChudzicki
Copy link
Contributor

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/7734

Description (What does it do?)

This PR adds separate redirect parameters for login and signup. Our login URLs are now of the form:

http://api.learn.odl.local:8065/login?next=LOGIN_NEXT&signup_next=SIGNUP_NEXT

How can this be tested?

Locally, with keycloak enabled, check that:

  1. Login redirects you to the current page, always.
  2. Signup from the "Signup popover" redirects you to the current page AFTER onboarding.
    • Signup popover can be triggered by clicking the bookmark buttons on cards, or by clicking "Subscribe" on channel pages.
  3. Signup from all other signup links (Header on any page; "Sign up" in blue section on homepage) redirects you to dashboard AFTER onboarding.

@ChristopherChudzicki ChristopherChudzicki added the Needs Review An open Pull Request that is ready for review label Jul 22, 2025
@rhysyngsun rhysyngsun self-assigned this Jul 30, 2025
Comment on lines +88 to +89
else:
return redirect(signup_redirect_url)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's possible that signup_next isn't specified and I think it's reasonable to have this implemented so that it's not required. In that case, it should fall back to next, otherwise the default (/app).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review An open Pull Request that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants