Skip to content

Docs: Invalid URL (404) provided on server actions error #56296

Closed
@WillGarman

Description

@WillGarman

What is the improvement or update you wish to see?

My wrong code has led me to an error logging that should an invalid URL for the Nextjs app router docs.

here is the error logged:

 It is not allowed to define inline "use server" annotated Server Actions in Client Components.
  | To use Server Actions in a Client Component, you can either export them from a separate file with "use server" at the top, or pass them down through props from a Server Component.
  |
  | Read more: https://nextjs.org/docs/app/api-reference/server-actions#with-client-components
  |

But the problem here is the provided URL is not a valid page:
https://nextjs.org/docs/app/api-reference/server-actions#with-client-components

I believe it should be referencing this page covering server actions:
https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components

Is there any context that might help us understand?

this could lead to people not being able to find the proper documentation although it exists

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

https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationRelated to Next.js' official documentation.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions