Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Docs: unclear RedirectType #59160

Copy link
Copy link
Open
Documentation
Copy link
@pedro757

Description

@pedro757
Issue body actions

What is the improvement or update you wish to see?

I want to know what is the second parameter type of the redirect() function

https://nextjs.org/docs/app/api-reference/functions/redirect

Is there any context that might help us understand?

image
What exactly is RedirectType in that image.

None of these work, all of them error

redirect("/dashboard/ajustes/empresas", "push");
redirect("/dashboard/ajustes/empresas", "replace");
redirect("/dashboard/ajustes/empresas", { type: "push" });
redirect("/dashboard/ajustes/empresas", { replace: true });

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/api-reference/functions/redirect

lohrm-stabl

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.