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

Navigation to fragment identifiers is busted #43

Closed
msporny opened this issue Jun 21, 2012 · 1 comment
Closed

Navigation to fragment identifiers is busted #43

msporny opened this issue Jun 21, 2012 · 1 comment

Comments

@msporny
Copy link
Member

msporny commented Jun 21, 2012

We typically have "live" documents that represent the latest editor's draft, like so:

http://json-ld.org/spec/latest/json-ld-syntax/

Often, we would like to link people to a section of the document, like so:

http://json-ld.org/spec/latest/json-ld-syntax/#iris

You will note that the link to the fragment identifier above doesn't work if you click on the link above, but will work if you wait for ReSpec to do it's thing and then go to the Table of Contents and click on the "IRI" link. I'm guessing it's because when the browser hits the page, the fragment identifier doesn't exist because the ReSpec code hasn't run yet. Could we have a bit of code that runs after the entire document has been rendered to navigate to any fragment identifier that exists in the URL bar?

@darobin
Copy link
Member

darobin commented Jun 21, 2012

Yes, you're entirely right :) This is actually a duplicate of #10. I know how to do this, I just want to finish a few other things first.

@darobin darobin closed this as completed Jun 21, 2012
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

2 participants