Script [Solved] Refer to the latest unread post without redirection
And don't care about the page ID. It doesn't need page ID, it'll redirect and open correct post in correct page with post-id only. Just make sure the red marked options are enabled and try to click the links of topics. You'll see that all works fine, and it goes to correct post with the correct page (even if the page number doesn't exist in the URL).
I see that the redirection of the page is the native functionality to go to the last unread post.
Unfortunately, this redirection can be really slow sometimes, users are really not satisfied with this feature, and I understand them.
Is there an evolution planned on this point so that the link goes directly to the right page of a topic?
It is not possible to calculate from the recent.php page where the post will be located according to the number of posts per page and the date of the post?
The redirection only works if the topic has more than one pages of replies. However, you can switch to the direct link generation with this hook code. Put it in the functions.php file of your current active WordPress theme or install the Code Snippets plugin and insert the code as a new code snippet. Then go to Dashboard > Forums > Dashboard admin page and click the [Delete all caches] button.