h icon indicating copy to clipboard operation
h copied to clipboard

Normalize local "file://" URIs

Open robmoss-fp opened this issue 6 years ago • 0 comments
trafficstars

Steps to reproduce

(we are using the https://hypothes.is/embed.js code)

  1. Annotate a local intranet HTML file using Firefox
  2. 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.

robmoss-fp avatar Jun 05 '19 21:06 robmoss-fp