fix 404 page asset links for correct path resolution

This commit is contained in:
Fabian Schieder 2026-03-02 23:15:54 +01:00
parent 7c10e0ffe7
commit 3e0a85542e

View File

@ -14,8 +14,8 @@ error_log("[404] " . ($_SERVER['REMOTE_ADDR'] ?? '') . " $method $requestUri");
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/images/favicon.ico" sizes="any">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="/assets/images/favicon.ico" sizes="any">
<link rel="stylesheet" href="/style.css">
<title>404 Seite nicht gefunden | Geizkragen</title>
</head>
<body>
@ -52,7 +52,7 @@ error_log("[404] " . ($_SERVER['REMOTE_ADDR'] ?? '') . " $method $requestUri");
<div class="error-card__path"><?php echo $requestUri; ?></div>
<div class="error-card__actions">
<a href="index.php" class="btn btn--primary">
<a href="/index.php" class="btn btn--primary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" width="18" height="18">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>