Eine Endlosschleife beim Laden tritt auf, wenn ein Thema entfernt wird

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 „Gefällt mir“

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 „Gefällt mir“

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