Skip to content

feat: preserve the activation next URL for all learners - #456

Draft
pwnage101 wants to merge 1 commit into
release-ulmofrom
pwnage101/ENT-11816-account-activation
Draft

feat: preserve the activation next URL for all learners#456
pwnage101 wants to merge 1 commit into
release-ulmofrom
pwnage101/ENT-11816-account-activation

Conversation

@pwnage101

@pwnage101 pwnage101 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Rework activate_account() so the post-activation destination is no longer sensitive to enterprise membership, and consistently redirects unauthenticated learners to the login page in a way that preserves the next URL. Furthermore, this commit expands the cases where the activation CTA cookie is cleared, so that it's always cleared after successful activation.

Prior to this commit, there were three user stories which seemed wrong and had possibly misleading behavior:

  1. Already-logged-in, non-enterprise learners trying to click an "activate account" link containing a next URL would get dropped into the learner dashboard despite a next URL being specified.
  2. Logged-out learners on a platform with the AuthN MFE disabled (still a supported configuration) trying to click an "activate account" link containing a next URL would get dropped into the learner dashboard despite a next URL being specified.
  3. Logged-out learners on a platform with the AuthN MFE enabled may see an activation CTA (reminder message to activate) even after successful activation and login.

In user stories 1-2, the next URL has been carefully supplied by the client, but subsequently ignored. If the intended behavior is to terminate on the dashboard, clients should NOT specify a next query parameter on the activate_account link.

In user story 3, the stray activation CTA may seem nagging and annoying since activation was already attempted and succeeded.

ENT-11816

Rework activate_account() so the post-activation destination is no
longer sensitive to enterprise membership, and consistently redirects
unauthenticated learners to the login page in a way that preserves the
`next` URL.  Furthermore, this commit expands the cases where the
activation CTA cookie is cleared, so that it's *always* cleared after
successful activation.

Prior to this commit, there were three user stories which seemed wrong and
had possibly misleading behavior:

1. Already-logged-in, non-enterprise learners trying to click an
   "activate account" link containing a `next` URL would get dropped
   into the learner dashboard despite a `next` URL being specified.
2. Logged-out learners on a platform with the AuthN MFE disabled
   (still a supported configuration) trying to click an "activate
   account" link containing a `next` URL would get dropped into the
   learner dashboard despite a `next` URL being specified.
3. Logged-out learners on a platform with the AuthN MFE enabled may
   see an activation CTA (reminder message to activate) even after
   successful activation and login.

In user stories 1-2, the `next` URL has been carefully supplied by the
client, but subsequently ignored.  If the intended behavior is to
terminate on the dashboard, clients should NOT specify a `next` query
parameter on the activate_account link.

In user story 3, the stray activation CTA may seem nagging and annoying
since activation was already attempted and succeeded.

ENT-11816
@pwnage101
pwnage101 force-pushed the pwnage101/ENT-11816-account-activation branch from 0a42578 to 47e0e43 Compare September 3, 2026 22:07
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.

1 participant