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

Hash URL does not work on initial load #2480

Closed
mmikhasenko opened this issue Feb 16, 2023 · 5 comments
Closed

Hash URL does not work on initial load #2480

mmikhasenko opened this issue Feb 16, 2023 · 5 comments
Labels
enhancement New feature or request frontend Concerning the HTML editor good first issue Good for newcomers

Comments

@mmikhasenko
Copy link

I want to reference a section of the html pluto notebook.
I identify right id, and add it to the url with the hash, it works if page is not reloaded.

When I load the page directly with the hash in url, the scrolling does not work.

Then, I can put a wrong hash, press Enter, - nothing happens, then again the right hash, the scrolling works.

issue

@fonsp fonsp changed the title Something prevents the browser scrolling to the url hash Hash URL does not work on initial load Mar 1, 2023
@fonsp fonsp added the frontend Concerning the HTML editor label Mar 1, 2023
@fonsp
Copy link
Owner

fonsp commented Mar 1, 2023

This is because we load content dynamically using JS, after connecting the websocket and getting the initial state. Might be worth to find a workaround!

@fonsp fonsp added good first issue Good for newcomers enhancement New feature or request labels Mar 1, 2023
@mmikhasenko
Copy link
Author

@pankgeorg suggested on slack to use html tags, I have not tested yet if it works

I would suggest the

html”<h1 id=‘heading-for-calculus’>Calculus</h1>”

Pluto does have some auto generated ids but they > aren’t guaranteed to be stable so if you want to send bookmarks, include these in your code

@fonsp
Copy link
Owner

fonsp commented Mar 7, 2023

This probably won't work because of the same reason: #2480 (comment)

@fonsp
Copy link
Owner

fonsp commented Jul 12, 2024

This one might have been fixed! let me cone back to this

@fonsp
Copy link
Owner

fonsp commented Jul 15, 2024

Fixed by #2789

@fonsp fonsp closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Concerning the HTML editor good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants