diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 77a5d43faa..ba1270f146 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -422,7 +422,7 @@ $topic_mod .= ($auth->acl_get('f_announce', $forum_id) && $topic_type != POST_GL $topic_mod .= ($auth->acl_get('m_', $forum_id)) ? '' : ''; // If we've got a hightlight set pass it on to pagination. -$pagination = generate_pagination($viewtopic_url, $total_posts, $config['posts_per_page'], $start); +$pagination = generate_pagination("{$phpbb_root_path}viewtopic.$phpEx$SID&f=$forum_id&t=$topic_id&$u_sort_param" . (($highlight_match) ? "&hilit=$highlight" : ''), $total_posts, $config['posts_per_page'], $start); // Navigation links generate_forum_nav($topic_data);