projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
changed my mind about how to disambiguate links, it seems to make more
[ikiwiki.git]
/
IkiWiki.pm
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 54bb1826cfb4178ad82e84cb6125e1f870cb2569..9f6c3bb1f95557dfc0577e6d8fcf9a7ab759651e 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-298,10
+298,9
@@
sub bestlink ($$) { #{{{
my $link=shift;
my $cwd=$page;
-
- # relative links
- while ($link=~s!(^|/)\.\./!!g) {
- $cwd=~s!/?[^/]+$!!;
+ if ($link=~s/^\/+//) {
+ # absolute links
+ $cwd="";
}
do {