]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
add test for link(.)
[ikiwiki.git] / IkiWiki.pm
index df8abe2c2711281c220a604aa0ddca09ec915a02..6fd11296013eef2004dee6dd939c70230eaaf70c 100644 (file)
@@ -2401,6 +2401,9 @@ package IkiWiki::PageSpec;
 sub derel ($$) {
        my $path=shift;
        my $from=shift;
+       if ($path eq '.') {
+               $path = $from;
+       }
 
        if ($path =~ m!^\./!) {
                $from=~s#/?[^/]+$## if defined $from;