Slim daily: support legacy query parameter

This commit is contained in:
ArthurHoaro 2020-05-17 11:11:57 +02:00
parent 69e29ff65e
commit 07f99432b7

View file

@ -522,7 +522,8 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
// Daily page.
if ($targetPage == Router::$PAGE_DAILY) {
header('Location: ./daily');
$dayParam = !empty($_GET['day']) ? '?day=' . escape($_GET['day']) : '';
header('Location: ./daily'. $dayParam);
exit;
}