Skip to content

Comments

fix: TOC should expand with direct url navigation#703

Merged
bmunkholm merged 3 commits intomainfrom
bm/fix-direct-url-navigation
Feb 12, 2026
Merged

fix: TOC should expand with direct url navigation#703
bmunkholm merged 3 commits intomainfrom
bm/fix-direct-url-navigation

Conversation

@bmunkholm
Copy link
Contributor

@bmunkholm bmunkholm commented Feb 12, 2026

About

// Ensure the path to the current page is always expanded in the TOC.
// When opening a page directly via URL (not by navigating within the
// site), restoreNavState() may set checkboxes to a previously saved
// state that doesn't include the current page's ancestors as expanded.
// Furo marks these ancestors with the "current" class, so we force
// their checkboxes open.

References

@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bm/fix-direct-url-navigation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bmunkholm bmunkholm changed the title Bm/fix-direct-url-navigation fix: TOC should expand with direct url navigation Feb 12, 2026
@bmunkholm bmunkholm self-assigned this Feb 12, 2026
@bmunkholm bmunkholm requested review from amotl and kneth February 12, 2026 19:06
Copy link
Member

@amotl amotl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bmunkholm bmunkholm merged commit 9ea4b42 into main Feb 12, 2026
12 of 17 checks passed
@bmunkholm bmunkholm deleted the bm/fix-direct-url-navigation branch February 12, 2026 19:32
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.

2 participants