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

Go straight to anchor on page load #40

Open
rikedyp opened this issue May 15, 2023 · 0 comments
Open

Go straight to anchor on page load #40

rikedyp opened this issue May 15, 2023 · 0 comments

Comments

@rikedyp
Copy link
Contributor

rikedyp commented May 15, 2023

https://tryapl.org/?tab=help#limitations

The link above goes to the correct tab, but not to the anchor #limitations. It does on Firefox if the page has already been loaded and then you select the URL bar and press Enter again.

I believe this could be resolved with a call from the window load event https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event which scrolls to window.location.hash.substr(1).

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

No branches or pull requests

1 participant