h
h copied to clipboard
Normalize local "file://" URIs
Steps to reproduce
(we are using the https://hypothes.is/embed.js code)
- Annotate a local intranet HTML file using Firefox
- Annotate the same HTML file using Chrome
Expected behaviour
The annotations should be visible in both browsers.
Actual behaviour
The annotations are only visible in the individual browsers.
This is likely because files on a local server are prefaced with "file://///" in FF and "file://" in Chrome so the URIs appear to be different on the submitted annotations:
FF URI: "file://///server/folder/myFile.htm" Chrome URI: "file://server/folder/myFile.htm"
Would it possible to normalize the number of slashes after the "file:" when submitting annotations?
Browser/system information
Chrome 74, Firefox 67, Windows 10, embed.js hypothesis client code
Additional details
Being able to "assign" a document a unique ID apart from the URI (similar to how PDFs are handled, I believe) would be useful in this situation. Maybe a meta tag in the HTML?
Thank you for your time.