* Fix links to stylesheets when usedirs is enabled.
[ikiwiki.git] / IkiWiki / Plugin / meta.pm
index 18e28a196a47805f6d95550894dc62e917d60593..f498398a28c13cce404b1ae08e9500e83f678f7c 100644 (file)
@@ -65,7 +65,7 @@ sub preprocess (@) { #{{{
                }
        }
        elsif ($key eq 'title') {
-               $title{$page}=encode_entities($value);
+               $title{$page}=HTML::Entities::encode_numeric($value);
        }
        elsif ($key eq 'permalink') {
                $permalink{$page}=$value;
@@ -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";