# 点击主页徽标不再将您带到页面顶部

**URL:** <https://meta.discourse.org/t/clicking-home-page-logo-no-longer-takes-you-to-top-of-the-page/270856>\
**Category:** Bug\
**Created:** [2023 年7 月 7 日 06:55 UTC](https://meta.discourse.org/t/clicking-home-page-logo-no-longer-takes-you-to-top-of-the-page/270856 "2023-07-07T06:55:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2023 年7 月 12 日 12:18 UTC](https://meta.discourse.org/t/clicking-home-page-logo-no-longer-takes-you-to-top-of-the-page/270856/10 "2023-07-12T12:18:30Z")

</div>

我有一个正在进行的修复程序：

> <https://github.com/discourse/discourse/pull/22552>
>
> Previously we were implementing scroll reset/memorization on a per-page basis. M…any of these approaches relied on the \`didInsertElement\` hook, which is no longer appropriate since Discourse changed to use the 'loading slider' strategy for page transitions.
> 
> This commit rips out all of our custom scroll resetting/memorizing, and implements those things in a generic service. There are two features:
> 
> 1. After every route transition, scroll to the top of the page
> 2. When using browser back/forward buttons, restore the last known scroll position for those routes

合并后我会在此更新

编辑：分支现已部署到 Meta 进行测试

---

_[View the full topic](https://meta.discourse.org/t/clicking-home-page-logo-no-longer-takes-you-to-top-of-the-page/270856)._
