diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 99c93a0af7..b176cc15d1 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -99,6 +99,7 @@
[Fix] Make word censoring case insensitive. (Bug #54265)
[Fix] Fulltext-MySQL search for keywords and username at the same time. (Bug #54325)
[Fix] Various XHTML mistakes in prosilver. (Bug #54705)
+ [Fix] Correctly show topic ATOM feed link when only post id is specified. (Bug #53025)
[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)
[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 7fb954017d..a114940449 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1726,6 +1726,12 @@ if (empty($_REQUEST['f']))
$_REQUEST['f'] = $forum_id;
}
+// We need to do the same with the topic_id. See #53025.
+if (empty($_REQUEST['t']) && !empty($topic_id))
+{
+ $_REQUEST['t'] = $topic_id;
+}
+
// Output the page
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);