# 浏览器后退按钮在主题列表/未读页面上表现令人惊讶

**URL:** <https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541>\
**Category:** Bug\
**Created:** [2020年三月25日 15:25 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541 "2020-03-25T15:25:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loren/32/64527_2.png) [@loren](https://meta.discourse.org/u/loren)\
**Post date:** [2020年三月25日 15:25 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/1 "2020-03-25T15:25:35Z")

</div>

我们运行的是私有实例，但也遇到了同样的问题。似乎需要访问两次才能将主题标记为已读。

复现步骤：

- 访问 [meta.discourse.org](http://meta.discourse.org)
- 从 `Latest` 视图中选择一个未读主题
- 返回

**观察结果：** 该主题仍被标记为未读，再次访问并返回 `Latest` 视图后才会标记为已读。

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2020年三月25日 15:35 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/2 "2020-03-25T15:35:29Z")

</div>

据我所知，如果您使用浏览器的后退按钮，这是预期行为。

不过，通过站点徽标或菜单栏导航应该可以正常工作。

我刚刚访问了该主题，然后返回到最新页面，该主题已被标记为已读：

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/9/99a201b98d005498407b60423e55c2865bf2cbfa.jpeg)

---

<div class="post-metadata">

**Author:** ![loren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loren/32/64527_2.png) [@loren](https://meta.discourse.org/u/loren)\
**Post date:** [2020年三月25日 15:35 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/3 "2020-03-25T15:35:58Z")

</div>

它们都存在同样的问题

---

<div class="post-metadata">

**Author:** ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)\
**Post date:** [2020年三月25日 19:52 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/4 "2020-03-25T19:52:44Z")

</div>

我今天早些时候在 [https://community.wanikani.com/](https://community.wanikani.com/) 上也遇到了这个问题，至少在移动设备上是这样。访问新主题并离开后，标题变成了灰色，看起来好像已读，但它仍然有一个蓝点，表示未读。

@Stephen 我认为我以前从未见过这个问题，即使在使用浏览器后退按钮时也是如此。

---

<div class="post-metadata">

**Author:** ![loren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loren/32/64527_2.png) [@loren](https://meta.discourse.org/u/loren)\
**Post date:** [2020年三月25日 20:05 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/5 "2020-03-25T20:05:02Z")

</div>

在 Meta 平台和我们封闭社区中，该问题似乎间歇性出现。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年三月26日 02:27 UTC](https://meta.discourse.org/t/browser-back-button-has-surprising-behavior-on-topic-lists-unread/145541/6 "2020-03-26T02:27:51Z")

</div>

这个问题存在一段时间了，我相信 @sam 和 @eviltrout 已经知晓。根据我的经验，如果您使用浏览器的后退按钮，问题会更为明显。
