Freshness URLs Broken
-
Hi all, hope you’re doing well.
I noticed what I suspect is a bug a few weeks ago. After digging through the forums, disabling plugins, turning off custom functions and more, I cannot seem to identify the source of my following issue.
Basically, when the bbp_topic_freshness_link() function is called in loop-single-topic.php, for example, the URL should show something like:
domain[dot]com/forum/topic/topic-title/page/2/#post-12345
Note that the /page/2/ part is only meant for threads that have more than one page of replies. So if that same example topic only had 2 replies, for example, the URL would have been:
domain[dot]com/forum/topic/topic-title/#post-12345
So the issue I am having is that for some topics, when there are multiple pages, the /page/2/ part of the URL isn’t included. So when the link it clicked on, it goes to the first reply on the first page of the topic. What’s more baffling is that sometimes, the link without the /page/2/ bits included does go to the correct URL. I’ve tried this from multiple accounts and I cannot seem to uncover any meaningful patterns.
I did try to run the repair job titled “Recalculate last activity in each topic and forum” with no luck. All of the URLs are still randomly missing the page parts.
A few potentially relevant notes:
– I migrated my forum from SMF
– All of my forums are private
– I am using the “Go To First Unread Post” plugin but the issue still occurs when disabledDoes it sound like this issue related to this fix?: https://bbpress.trac.wordpress.org/ticket/2876
Many thanks,
Tim
- You must be logged in to reply to this topic.