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
Direct linking V2 #769
Comments
So, my first partial implementation will use the browser's local storage to store the ID of the target annotation before following the link, and recovering that info in the H implementation loading at the other, and then focusing on the wanted annotation. Any objections? |
For anyone interested, this is all I plan to do (minimal plan): For now, I just want to cover the two most simple use cases:
So, the plan to implement would be this:
That's all. This is the V0. This does not interfere with via. Via could implement support for reading the same kind of "stored commands", and then we can think about what should be the default target of those links at the annotation cards. But for now, I just want to get the basics to work. /cc @ikreymer |
Some background thinking: It would be nice to specify the target annotation inside the URL; that would make it possible to save the URL, or open it on a new tab, or share it directly with someone else, etc. However, I don't think we can just wantonly add random stuff to the URIs handled by others; many pages use the URL for encoding requests, so that's just won't do. Therefore, we need to look for an out-of-band channel for passing the information about the annotation that we want to focus at. VIA could work around this, by encoding the wanted annotation ID and the URL separately in a common URI, and the decouple it on server side, and fetch the document itself using the "clean" URL; but I want to tackle the non-via usecase now. So, the URL is out. What remains is
I find the client side cleaner, and less prone to various unintended consequences, so I am going to go with that. Hence, browser local store it is. (For v0, at least.) Comments are welcome, as always, but since we are having hack days, I think I'll just build it anyway :) |
@csillag In your referenced issues above, I think you've captured the background info that I would have linked to. |
@dwhly, Do you mean the spec available here? If yes, then I'll only cover a small part of it during these 2 days. Also, it looks like
Anyway, what I plan to implement first is only one variant of one of the 4 listed methods here. We can add the rest later. |
Closing as old and out of date. Big features like "direct linking" will come down the product prioritisation and design processes. |
Moved here: hypothesis/vision#87 |
Linking directly to annotation as an overlay on the original source, not via an interstitial page.
Spec is here.
The text was updated successfully, but these errors were encountered: