diff --git a/public/forum/posting.php b/public/forum/posting.php index d4f28a49..69c421d7 100644 --- a/public/forum/posting.php +++ b/public/forum/posting.php @@ -202,7 +202,8 @@ if (!empty($_POST)) { } if (empty($notices)) { - header("Location: /forum/topic.php?p={$postId}#p{$postId}"); + $redirect = '/forum/topic.php' . (empty($topic) ? "?t={$topicId}" : "?p={$postId}#p{$postId}"); + header("Location: {$redirect}"); return; } }