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

Auto-open details tag when jumping to element by id #154

Open
EvitanRelta opened this issue Jul 16, 2022 · 0 comments
Open

Auto-open details tag when jumping to element by id #154

EvitanRelta opened this issue Jul 16, 2022 · 0 comments
Labels
feature New feature
Milestone

Comments

@EvitanRelta
Copy link
Owner

Normally, in HTML, if and element is in a closed details tag, and u jump to said element via id (ie. by suffixing #[ELEMENT_ID] to the URL), it will auto-open the details tag before jumping.

However, Github's anchor-link-icon (shown below):
image

doesn't suffix the element's id.
Instead, it suffixes the header's text, and (probably) jumps to said header via Javascript.
Notice how the anchor-link-icon has a href="#header-in-details" but the header doesn't even have an id:

image


Thus, with reference to the above example, suffixing #header-in-details doesn't auto-open the details tag since its not a valid id.
However, it can be circumvented by suffixing the anchor-link-icon's id (ie. #user-content-header-in-details):

image

@EvitanRelta EvitanRelta added the feature New feature label Jul 16, 2022
@EvitanRelta EvitanRelta added this to the After Orbital milestone Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant