Links to locally available machines used to be automatically translated from file://amachine
This makes firefox work with locallinks plugins allowing intranet links to internal windows shares to work.
Without this ability my intranet TWiki will die which would be very upsetting.
I have previously added this code into Render.pm
# Firefox implements URIs properly which means it
# wants file://///
for links to local files.
# People however want to write file://
and IE lets both
# work so this encourages people in their bad behaviour.
# Note that this needs a user.js on Firefox to allow the
# link to succeed.
$url =~ s%file://([^/]*)%file://///$1%g;
This was in the sub external_link just above the #SMELL comment (which is still there in the beta I am running).
- 11 Dec 2007
I have done a test at TWiki:Sandbox.TestTwoOrFiveFileLinkSlashes
- no rewriting takes place.
This is not something that was previously in TWiki released code, but a useful enhancement.
Any thoughts on other browsers / risks?
Degrading to enhancement.
- 12 Dec 2007