Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG]: Navigating to a new page preserves the previous scroll position

已关闭 适合新手
#314 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@syedbarkath980 已经在做这个了。

开始于 2026年10月6日。

  • #315 来自 @syedbarkath980 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

首先通过页脚中的内部链接(如 Support Us 或 API Status)复现问题,然后阅读处理内部导航和页脚链接的代码。确认从已滚动页面进行导航时会保留旧位置。Done 表示内部导航会将目标页面滚动到顶部开始显示。

由索引模型根据 Issue 内容生成。

描述

bug
Bug Description
Description

When navigating between internal pages in OrgExplorer, the new page preserves the scroll position of the previous page.

This is particularly noticeable when navigating through links in the footer. If the user is at the bottom of a page and clicks a footer link, the destination page also opens at the bottom instead of starting from the top.

Actual Behavior

The newly navigated page retains the previous page's scroll position, causing the user to land somewhere in the middle or at the bottom of the new page.

https://github.com/user-attachments/assets/318be68e-83c7-4f33-b2a3-be8b9448f5df

Expected Behavior

When navigating to a different internal page, the page should start at the top so the user can begin reading the new page from the beginning.

Steps to Reproduce
  1. Open OrgExplorer.
  2. Navigate to any page with enough content to scroll.
  3. Scroll to the bottom of the page.
  4. Click an internal navigation link in the footer, such as Support Us or API Status.
  5. Observe the scroll position on the new page.
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要语言
JavaScript
星标
44
派生
133
平均合并
5 天 5 小时
30 天内合并 PR
27

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AOSSIE-Org/OrgExplorer 的其他 Issue

查看 AOSSIE-Org/OrgExplorer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。