In XF1 internal links included the page number the post was on, e.g.: /threads/thread-title.123456/page-3#post-5249947
Unfortunately this page number changes if you delete a good number of earlier posts in the thread, or if you change the number of posts displayed per page, resulting in lots of broken links all over the site.
XF2 cures this problem by removing the page number from the URL and linking directly to the post number - great!!
As we work through our planning and testing for upgrading to XF2 we wondered if there was a way to (post upgrade) convert the old XF1 links that have the page number in, to XF2 links that directly reference the post.
Maybe some sort of query that finds links with page- in them and removes it?
Any thoughts, ideas, or even MySQL query examples we might use to achieve this would be very welcome. Thank you.
Unfortunately this page number changes if you delete a good number of earlier posts in the thread, or if you change the number of posts displayed per page, resulting in lots of broken links all over the site.
XF2 cures this problem by removing the page number from the URL and linking directly to the post number - great!!
As we work through our planning and testing for upgrading to XF2 we wondered if there was a way to (post upgrade) convert the old XF1 links that have the page number in, to XF2 links that directly reference the post.
Maybe some sort of query that finds links with page- in them and removes it?
Any thoughts, ideas, or even MySQL query examples we might use to achieve this would be very welcome. Thank you.