Include location.origin in URL for share links

Fixes #183