diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 4ca36483..fce581ac 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -7,6 +7,11 @@ # Further details on the project are available at https://github.com/postfixadmin/postfixadmin +Unreleased +---------- + + - Preserve the current origin when paginating the admin log (see #1210). + Version 4.0.7 (2026/11/18) -------------------------- diff --git a/public/viewlog.php b/public/viewlog.php index 9a7a728a..12a0cad9 100644 --- a/public/viewlog.php +++ b/public/viewlog.php @@ -153,8 +153,6 @@ foreach ($tLog as $k => $v) { $tLog[$k] = $v; } } -//get url -$url = explode("?",(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]")[0]; $smarty->assign('domain_list', $list_domains); $smarty->assign('domain_selected', $fDomain); @@ -163,7 +161,6 @@ $smarty->assign('fDomain', $fDomain); $smarty->assign('number_of_pages', $number_of_pages); $smarty->assign('page_number', $page_number); -$smarty->assign('url',$url); $smarty->assign('smarty_template', 'viewlog'); $smarty->display('index.tpl'); diff --git a/templates/viewlog.tpl b/templates/viewlog.tpl index 5386fe75..9b6d021b 100644 --- a/templates/viewlog.tpl +++ b/templates/viewlog.tpl @@ -117,7 +117,7 @@