Skip to content

Commit 565847f

Browse files
author
Mark Vincent
committed
Fixes #253
...where post URLs were formed incorrectly when using SEO-friendly links.
1 parent 5c883dd commit 565847f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Upload/inc/plugins/asb/modules/recent_posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function recent_posts_get_postlist($settings)
286286
}
287287

288288
$post['subject'] = htmlspecialchars_uni($parser->parse_badwords($post['subject']));
289-
$post['link'] = get_thread_link($post['tid']) . "&pid={$post['pid']}#pid{$post['pid']}";
289+
$post['link'] = get_post_link($post['pid'], $post['tid']) . "#pid{$post['pid']}";
290290

291291
// we just need the text and smilies (we'll parse them after we check length)
292292
$pattern = "|[[\/\!]*?[^\[\]]*?]|si";

0 commit comments

Comments
 (0)