* Fix links to stylesheets when usedirs is enabled.
[ikiwiki.git] / IkiWiki / Plugin / meta.pm
index 184146cfee5c558a23426a6b36438f8e681b41f9..f498398a28c13cce404b1ae08e9500e83f678f7c 100644 (file)
@@ -87,7 +87,7 @@ sub preprocess (@) { #{{{
                if (! length $stylesheet) {
                        return "[[meta ".gettext("stylesheet not found")."]]";
                }
-               $meta{$page}.='<link href="'.$stylesheet.
+               $meta{$page}.='<link href="'.urlto($stylesheet, $page).
                        '" rel="'.encode_entities($rel).
                        '" title="'.encode_entities($title).
                        "\" style=\"text/css\" />\n";