Scrivito.NotFoundErrorPage

Conditional component shown if the requested resource cannot be found.

Copy
<Scrivito.NotFoundErrorPage>
  This is how to say "404" in Scrivito
</Scrivito.NotFoundErrorPage>

The <Scrivito.NotFoundErrorPage>  component informs visitors of your Scrivito-based website about a missing resource (e. g. a mistyped or outdated URL). By specifying child components you can provide custom error rendering.

Props

This component does not accept any props.

Remarks

  • The children of the component will be shown if the requested resource is not a valid CMS object. If no children are given, a default message along the lines of "The page you were looking for doesn't exist." is shown.
  • If the condition for <Scrivito.NotFoundErrorPage> is met, <Scrivito.CurrentPage> is empty. For this reason, you will normally find these side by side:
Copy
<div>
  <Scrivito.CurrentPage />
  <Scrivito.NotFoundErrorPage />
</div>