Feature request: open my saved snapshot when clicking a link to it from another snapshot

Many of the web pages I save with the Zotero Connector link to each other, and I've saved the linked pages too. When I click one of those links in Zotero's snapshot reader, it opens the live page in my browser, even though I already have a saved copy in my library.


It would help if clicking a link in a snapshot opened the saved snapshot in a new reader tab whenever an item in the library has a URL matching the link. This is especially useful for reading offline, or when the original page has changed or been taken down.


**Suggested behaviour**


- Clicking an http(s) link in a snapshot looks for a regular item whose URL field matches the link, ignoring the `#fragment` and minor differences such as a trailing slash or `www.`. If that item has a snapshot, Zotero opens it in a new reader tab and jumps to the `#fragment` if there is one.

- If there's no match, behaviour stays as it is now and the live page opens.

- There's always a way to get to the live page, for example a modifier-click or an "Open in Browser" / "Open Saved Snapshot" option in the link's context menu. A preference to turn the feature off would also make sense.

- If several items match, open the most recently added one, or let me choose.


**Current behaviour**


As far as I can tell from the source, link clicks in snapshot views go to `onOpenLink` in `chrome/content/zotero/xpcom/reader.js` (about line 461 in the current main branch), which calls `ZoteroPane.loadURI(url)`. That handler would be a natural place to check for a matching item first.


**Prior request**


This was asked once before, in [Working links between snapshots](https://forums.zotero.org/discussion/1041/working-links-between-snapshots) (2007), but that thread got no replies. Much has changed since then, because snapshots now open in Zotero's own reader.


Zotero 10.0.9 on macOS. Thanks for considering it!
Sign In or Register to comment.