Skip to content

Push to prod: Redirect to newer sttm design, if the user has opened the newer design. - #1892

Merged
Gauravjeetsingh merged 3 commits into
masterfrom
dev
Sep 22, 2026
Merged

Gauravjeetsingh merged 3 commits into
masterfrom
dev

Conversation

@Gauravjeetsingh

Copy link
Copy Markdown
Collaborator

No description provided.

divyanshugarg36 and others added 3 commits September 22, 2026 18:14
Remember when a user chooses the new design and auto-redirect them there on
future visits, via a cookie shared with next.sikhitothemax.org on the parent
.sikhitothemax.org domain.

- util/design-preference: rememberNewDesign (set the cookie) + maybeRedirectToNewDesign
  (redirect to next preserving the path, prod host only, with a ?design=old escape hatch).
- redirect-check: runs the redirect first, before the rest of the bundle loads.
- index.js: import redirect-check as the first import.
- Home: "Try it now" sets the preference and opens the new design in the same tab.
…n-redirect

feat: remember new-design choice and auto-redirect (#151)
@Gauravjeetsingh
Gauravjeetsingh merged commit 3cb5755 into master Sep 22, 2026
1 of 3 checks passed
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