Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pat navigation): Don't check query string and hash fragments. #1075

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thet
Copy link
Member

@thet thet commented Sep 28, 2022

When setting navigation markers based on URL comparison do not set the query string and hash fragments. When using hash navigation within one page, use pat-scroll to mark items as current.

This fixes a problem described in: euphorie/Euphorie#447 (comment)

It has the drawback that URL based detection of the current item when using navigation based on query strings or hash fragments (e.g. a table of contents) would not be possible anymore. But that might be corner cases.

When setting navigation markers based on URL comparison do not set the query string and hash fragments.
When using hash navigation within one page, use pat-scroll to mark items as current.
@reinhardt
Copy link
Contributor

Did you consider Ale's suggestion of making this configurable?

@thet
Copy link
Member Author

thet commented Sep 29, 2022

Will do that

@thet thet marked this pull request as draft July 12, 2023 08:34
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