X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/c207086282b2f058f647b7fa810f3da54fe5fe4b..9fca7f2f8b64f4caded4a0099cef1f4d152dabee:/IkiWiki/Plugin/inline.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 8f7cd826e..1b12144e8 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -389,18 +389,18 @@ sub absolute_urls ($$) { #{{{ my $url=$baseurl; $url=~s/[^\/]+$//; - # what is the non path part of the url? (need it for relative url's starting with / + # what is the non path part of the url? my $top_uri = URI->new($url); - $top_uri->path_query("/"); # reset the path + $top_uri->path_query(""); # reset the path my $urltop = $top_uri->as_string; - $urltop=~s/\/*$//; $content=~s/(