-
Notifications
You must be signed in to change notification settings - Fork 29.6k
docs: to indicate that redirect can be used in both server and client… #82092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: to indicate that redirect can be used in both server and client… #82092
Conversation
… components, rename the hyperlink text in the redirect.mdx
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Do you mean here, using Cuz within event handlers, redirect won't do its thing, right? |
@icyJoseph Would it be better to explicitly add wording here? |
We do have this in this docs page:
Maybe we can reword your change to:
|
@icyJoseph |
#82092) <img width="591" height="132" alt="image" src="https://github.com/user-attachments/assets/9c9c64fe-4095-4127-a893-1c12426d9700" /> - When I first read the explanation, it felt as if `redirect` couldn’t be used in client components. - Also, when clicking the `Server Components` link, it leads to the `Server and Client Components` page. - To indicate that `redirect` can be used in both `server and client components`, rename the hyperlink text in the `redirect.mdx` file. --------- Co-authored-by: Joseph <[email protected]>
redirect
couldn’t be used in client components.Server Components
link, it leads to theServer and Client Components
page.redirect
can be used in bothserver and client components
, rename the hyperlink text in theredirect.mdx
file.