]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
need to remove trailing slashes in not one, but 2 places
[ikiwiki.git] / IkiWiki.pm
index eb003a1fb9992e940dec64d2a315cca4260307c2..81a634e2b185a4c1e32ac1539e90275777405d69 100644 (file)
@@ -407,6 +407,7 @@ sub bestlink ($$) { #{{{
                # absolute links
                $cwd="";
        }
                # absolute links
                $cwd="";
        }
+       $link=~s/\/$//;
 
        do {
                my $l=$cwd;
 
        do {
                my $l=$cwd;
@@ -541,6 +542,7 @@ sub htmllink ($$$;@) { #{{{
        my $page=shift; # the page that will contain the link (different for inline)
        my $link=shift;
        my %opts=@_;
        my $page=shift; # the page that will contain the link (different for inline)
        my $link=shift;
        my %opts=@_;
+
        $link=~s/\/$//;
 
        my $bestlink;
        $link=~s/\/$//;
 
        my $bestlink;