Merge pull request 'Paginator in der search-results implementiert mit js' (#32) from Search_Paginator into dev

Reviewed-on: #32
This commit was merged in pull request #32.
This commit is contained in:
2026-06-14 23:42:29 +02:00
4 changed files with 77 additions and 10 deletions
+5 -1
View File
@@ -62,7 +62,11 @@ if ($_SERVER["REQUEST_METHOD"] === "GET" && isset($_GET["q"])) {
$_SESSION["message"] = "internal_error";
}
}
header("Location: ../../index.php?pfad=search-results");
$sort = $_GET['sort'] ?? 'alphabet';
$limit = isset($_GET['limit']) ? (int)$_GET['limit'] : 10;
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
header("Location: ../../index.php?pfad=search-results&q=" . urlencode($search) . "&sort=" . urlencode($sort) . "&limit=" . $limit . "&page=" . $page);
exit();
}