Skip to content

[docs] Add RedirectType usage example to permanentRedirect#89833

Merged
eps1lon merged 1 commit intocanaryfrom
docs/add-redirect-type-to-permanent-redirect
Feb 11, 2026
Merged

[docs] Add RedirectType usage example to permanentRedirect#89833
eps1lon merged 1 commit intocanaryfrom
docs/add-redirect-type-to-permanent-redirect

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 11, 2026

Aligns docs of permanentRedirect with redirect with regards to mention of RedirectType.

Motivated by Vade getting confused about permanentRedirect(url, type) signature

Created via Cursor

Add the RedirectType object usage example to the permanentRedirect
documentation to match the redirect docs. This shows how to import
and use RedirectType with permanentRedirect for specifying the
redirect type (push vs replace).

Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
@nextjs-bot nextjs-bot added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. labels Feb 11, 2026
@eps1lon eps1lon requested a review from icyJoseph February 11, 2026 13:43
@eps1lon eps1lon marked this pull request as ready for review February 11, 2026 13:43
@eps1lon eps1lon merged commit 61672d9 into canary Feb 11, 2026
72 checks passed
@eps1lon eps1lon deleted the docs/add-redirect-type-to-permanent-redirect branch February 11, 2026 14:07
icyJoseph pushed a commit that referenced this pull request Feb 11, 2026
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants