On 2016-01-01 14:54, Tom Hughes wrote:<br>
> I assumed a "protocol handler" was a piece of code, that would be able<br>
> to process the URI as part of handling it.<br>
<br>
Ah, no I meant of course (as you now understand but for anyone else<br>
reading) the mechanism in a browser (or other) that registers when<br>
you're clicking a hyperlink which protocol this goes to (http, irc,<br>
gopher or - in this case - geo).<br>
<br>
> It is just another URL that you can substitute into then?<br>
<br>
Yes, the way it is added for irc: and ircs: in Firefox can be seen in<br>
this commit:<br>
https://hg.mozilla.org/mozilla-central/rev/e144dd6cd801<br>
<br>
# The default set of protocol handlers for irc:<br>
gecko.handlerService.schemes.irc.0.name=Mibbit<br>
<br>
gecko.handlerService.schemes.irc.0.uriTemplate=https://www.mibbit.com/?url=%s<br>
<br>
So if we get them to add OSM.org it would be something like:<br>
<br>
[...]uriTemplate=https://www.openstreetmap.org/search?query=%s<br>
<br>
or something else (like '/#%s' or '/geouri?%s' or however it's desirable<br>
to accept the geo: URI).<br>
<br>
-- <br>
Mikael Nordfeldth<br>
XMPP/mail: mmn@hethane.se<br>
OpenPGP fpr: AE68 9813 0B7C FCE3 B2FA 727B C7CE 635B B52E 9B31<br>
<br>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1123#issuecomment-168308987">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLdnJMReNQU9ICjXk_W-oLzb4Go-Bks5pVn_egaJpZM4G9Z0o.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1123#issuecomment-168308987"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>