Skip to content

Disable programmatic scrolling for anchored entries#2672

Open
spamguy wants to merge 1 commit intofreeCodeCamp:mainfrom
spamguy:2671
Open

Disable programmatic scrolling for anchored entries#2672
spamguy wants to merge 1 commit intofreeCodeCamp:mainfrom
spamguy:2671

Conversation

@spamguy
Copy link
Copy Markdown
Contributor

@spamguy spamguy commented Apr 1, 2026

This fixes a breakage caused by PR #2667 in which all route visits with no cached scroll position reset to the top. Anchored entries rely on the href's anchor to set scroll position and don't use cache; thus, all anchored entries scroll to the top.

nim's HTML cleaner was also updated to remove 'Source'/'Edit' links.

Fixes #2671 .

@spamguy spamguy requested a review from a team as a code owner April 1, 2026 20:07
@spamguy spamguy changed the title Disable scrolling for anchored entries Disable programmatic scrolling for anchored entries Apr 1, 2026
@Neonit
Copy link
Copy Markdown

Neonit commented Apr 8, 2026

Please merge soon. Bug is definitely a major one.

@xoism
Copy link
Copy Markdown

xoism commented Apr 8, 2026

I second Neonit's request. This bug makes devdocs basically useless the way I work.

@themadsens
Copy link
Copy Markdown

Does anyone know how to deploy this PR? Please :-)
If at all possible given the way DevDocs work?

@Neonit
Copy link
Copy Markdown

Neonit commented Apr 9, 2026

A workaround for me (using desktop Firefox) is re-submitting the URL (does not reload the page), if a click on an entry in the left column doesn't beam me to the anchor. Shortcut: CTRL + L, ENTER. (F5 also does the job, but it reloads the page and takes a lot longer)

@spamguy
Copy link
Copy Markdown
Contributor Author

spamguy commented Apr 10, 2026

Does anyone know how to deploy this PR? Please :-) If at all possible given the way DevDocs work?

AFAIK @simon04 is the primary admin that can approve, merge, and deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken Link Navigation in Nim and Nim 1

4 participants