Skip to content

feat: fix quick-start navigation on land page - avoid redirection#1431

Open
BenaventeX24 wants to merge 1 commit into
knocklabs:mainfrom
BenaventeX24:fix/quick-start-navigation
Open

feat: fix quick-start navigation on land page - avoid redirection#1431
BenaventeX24 wants to merge 1 commit into
knocklabs:mainfrom
BenaventeX24:fix/quick-start-navigation

Conversation

@BenaventeX24
Copy link
Copy Markdown

@BenaventeX24 BenaventeX24 commented May 11, 2026

Description

Quick Start page not loading when clicked from link

Screenshots

Screen.Recording.2026-05-08.at.3.40.56.PM.mov

So what I found:

Next router handles the redirection of _next/data requests inconsistently between environments. In both next dev and next start local environments, the router falls back to a full-page navigation when the fetch is first redirected. (it looses SPA but works basically).

In production, this fallback is not happening; instead, a client-side exception is thrown.

This PR sidesteps the inconsistency by updating the card links to the legit destination url directly, avoiding the redirect. The root cause could be on Vercel's or Nextjs's side IMO. Maybe just a simple cache thing too 🤷‍♂️

(Possible) Todos:

Delete content/getting-started/quick-start.mdx as it seems to be the outdated/deprecated version of content/getting-started/quick-start/general.mdx. As well as its redirection defined in next.config.js

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

@BenaventeX24 is attempting to deploy a commit to the Knock Team on Vercel.

A member of the Team first needs to authorize it.

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