A loading loop will occur when user try to fetch the former/latter page of a removed topic

For these steps:

  1. Login as a user, and read a topic;
  2. The admin/moderator removes the topic;
  3. Go up/down and trigger the fetch of the former/latter page.

Then the page will stuck in an infinite loading, with the console showing 403 forbidden getting /t/${this.topic.id}/posts.json. And if the website is protected by a waf, then the user will be banned from visiting it.

1 Like

This seems reasonable to me, thanks for the PR.

What does the user see once the page is reloaded, a message along the lines of “Sorry, this page is forbidden/private”?

1 Like

Yes, users will see message like this.
Just as what is on a normal 404 page.
(The user can’t access the topic, so I think the 404 logic is reasonable.)

Oops! The page does not exist or is not publicly accessible.
Take me home

1 Like

Thanks @small-lovely-cat, your PR is now merged.

1 Like

This topic was automatically closed after 3 days. New replies are no longer allowed.