Redirect to topic rather than directly to post when creating a topic.
This commit is contained in:
parent
8fd20f9c82
commit
a118d84a59
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue