So the problem is that ikiwiki would generate a relative link like
href="colon:problem", which web browsers treat as being in the "colon:"
uri scheme.
The best fix seems to be to make url beautification fix this, by slapping
a "./" in front.
if ($config{usedirs}) {
$url =~ s!/index.$config{htmlext}$!/!;
}
- $url =~ s!^$!./!; # Browsers don't like empty links...
+
+ # Ensure url is not an empty link, and
+ # if it's relative, make that explicit to avoid colon confusion.
+ if ($url !~ /\//) {
+ $url="./$url";
+ }
return $url;
} #}}}
(Gabriel McManus)
* attachment: Fix an uninitialised value warning when editing a page
that currently has no attachments.
+ * Fix a bug with links to pages whose names contained colons.
-- Joey Hess <joeyh@debian.org> Mon, 07 Jul 2008 01:52:48 -0400