Redirect to topic rather than directly to post when creating a topic.

This commit is contained in:
flash 2018-12-31 04:07:08 +01:00
parent 8fd20f9c82
commit a118d84a59

View file

@ -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;
}
}