Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group

Scrivito.NotFoundErrorPage

Conditional component shown if the requested resource cannot be found.

<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:
<div>
  <Scrivito.CurrentPage />
  <Scrivito.NotFoundErrorPage />
</div>