XF 2.2 Check link after change number post per page

qwer81

Member
Hi guys, shortly after migrating from Vbulletin to Xenforo I changed the number of posts per page (from 20 to 10) and a few days ago the number of threads per page (10). How can I check that everything is ok, and that the links of the individual posts do not give error 404 or similar?
 
Thread links should not be affected as they do not have page numbers included, but when I have tried this posts from page 2 onward become broken links. I would hope there is a way round this as otherwise it seems a bit pointless to allow changing number of messages per page if links get broken.
 
I believe the links could possibly be fixed if you can remove all of the page# from them.

So for example if this is the link that becomes broken because it becomes on page 3 instead of 2,

https://xenforo.com/community/threads/google-webp-support.76626/page-2#post-1435634

Then this should work by removing page-2#

https://xenforo.com/community/threads/google-webp-support.76626/post-1435634

You may be able to do this with find and replace with an appropriate regex

 
I believe the links could possibly be fixed if you can remove all of the page# from them.

So for example if this is the link that becomes broken because it becomes on page 3 insyead of 2,

https://xenforo.com/community/threads/google-webp-support.76626/page-2#post-1435634

Then this should work by removing page-2#

https://xenforo.com/community/threads/google-webp-support.76626/post-1435634

You may be able to do this with find and replace with an appropriate regex


Thanks for the reply. But I ask: what problem should it give?

For example: page not found by clicking on a page number or page not found by searching for the discussion on Google?

Everything seems ok to me. But I would like to verify well.
 
I just noticed, you only get the issue if links are made by clicking on the post# above the post and then copying the URL from the address bar of the browser. If people create links using the share post icon instead, then the link does not contain the pagination. So many of the links will be fine except those created be copying the post # itself

Links from Google link to thread pages not specific posts (I think) so I image they should be fine after a while once they recrawl andpick up the new page URL of a thread.

The main issue then would be when your users post a link to a specific post and did it via clicking on the post# instead of the share icon.
 
A side effect of doing this however may have SEO repercussions in that there will be more pages but each with less content. I would be concerned that Google may see more “thin content” and I’m not sure having more pages to crawl without the benefit of more content overall is a good thing. There may also be more pages that appear close to duplicate, or rather very similar, content.
 
Back
Top Bottom