Posting the last forum post in a page redirects you to the next, nonexistent page which then overflows and takes you to a broken Page 1
Describe the bug When posting the last post in a page on a forum thread, you are taken to a page that doesn't exist automatically. I assume the site is trying to take you to the next one, but it overflows and shits itself since the next page hasn't been created yet.
To Reproduce Steps to reproduce the behavior:
- Go to any forum thread with 14 posts on the last page, or fill it up yourself until it's at the 14th post in a page
- Type anything and send the 15th (and last) forum post for the page. You will be taken to a null page
- You are now on a page that doesn't exist
Expected behavior Posting the 15th forum post simply keeps you on the same page. Posting a 16th would take you to the next page which is created and put your latest post there.
Screenshots
Smartphone (please complete the following information):
- OS: Android 10
- Browser Chrome
- Version 131
Additional context This has consistently happened when posting casually. It could get annoying.
This is occurring likely due to previous posts in the thread being made by users who are not yet forum-authorized.
It also brings you to the next page when clicking on the link icon from the last post of the page then pasting the URL in address bar. For example, it currently does it on the Peak Streak thread starting from page 835 (posts from july 2024). The URL to the last post is https://retroachievements.org/viewtopic.php?t=12108&c=228311#228311
Will be resolved by https://github.com/RetroAchievements/RAWeb/pull/3205.