diff --git a/lib/PZ/Controller/Shortcut.pm b/lib/PZ/Controller/Shortcut.pm index 7f47f9c712775820912e4faff7c2cd2e1af31764..e46d6c2b13318fec3c0fa7d3fa8523c1f70e7693 100644 --- a/lib/PZ/Controller/Shortcut.pm +++ b/lib/PZ/Controller/Shortcut.pm @@ -12,7 +12,7 @@ sub redirect ($c) { })->first; if ( ! $shortcut ) { - $c->render( status => 404, text => 'not found' ); + $c->render( '404', status => 404 ); return; } diff --git a/templates/404.html.ep b/templates/404.html.ep new file mode 100644 index 0000000000000000000000000000000000000000..0d2525b2ea42849cff2dd5b51670c782f8d082e6 --- /dev/null +++ b/templates/404.html.ep @@ -0,0 +1,5 @@ +% layout 'default'; + +<h1 class="head-alt-md md:head-alt-lg max-w-5xl mb-8">Zkratka "<%= $c->stash->{shortcut} %>" neexistuje</h1> + +