Files
breadcrumb-the-shire/pages/error/not_found(error).phtml

22 lines
695 B
PHTML
Raw Normal View History

2026-02-04 23:31:53 +01:00
<?php
use MintyPHP\Http\Request;
http_response_code(404);
2026-02-04 23:31:53 +01:00
$path = Request::safeReturnTarget($_GET['url'] ?? '');
$pathDisplay = $path === '' ? '/' : '/' . $path;
2026-02-04 23:31:53 +01:00
$home = lurl('');
$backUrl = $path !== '' ? lurl($path) : $home;
2026-02-04 23:31:53 +01:00
?>
<header>
<h1><?php e(t('Page not found')); ?></h1>
<p><?php e(t('The page you requested does not exist or has moved.')); ?></p>
</header>
<?php if ($path !== ''): ?>
<p><small><?php e(t('Requested path')); ?>: <?php e($pathDisplay); ?></small></p>
2026-02-04 23:31:53 +01:00
<?php endif; ?>
<a class="outline secondary" role="button" href="<?php e($backUrl); ?>"><?php e(t('Back')); ?></a>
<a role="button" href="<?php e($home); ?>"><?php e(t('Home')); ?></a>