삭제된 게시물의 이전/다음 페이지를 불러올 때 로딩 루프가 발생합니다

https://github.com/discourse/discourse/pull/35409

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개의 좋아요

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개의 좋아요

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개의 좋아요

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

1개의 좋아요

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