head: include canonical location in og:url
[minimedit.git] / article.inc.php
index 53102bac4065b11ec7630897329e131561ce551d..dd3d5b2996d777fafe929c593dd666b5c97a5033 100644 (file)
@@ -22,7 +22,7 @@ class ArchiveArticle
        function __construct($path)
        {
                $this->page = preg_replace('{^\.(?:/|$)}', '', $path);
-               $this->link = preg_replace('{(?:/index)?\.html$}', '', $this->page);
+               $this->link = preg_replace('{(?:(?:/|^)index)?\.html$}', '', $this->page);
                $this->raw($this->page);
        }