Add redirection to home page in case of HTTP error

This commit is contained in:
Paul Nicoué 2022-08-04 17:05:19 +02:00
parent 4a66255fcc
commit 8e4f3dc3f0
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?php
return function ($site) {
// Get home page object
$homePage = $site->homePage();
// Redirect to home page
return go($homePage->url());
};

View file

@ -0,0 +1 @@
{% extends "base.twig" %}