diff --git a/kernel/page.class.php b/kernel/page.class.php index 6fed7cd0..5441bb0f 100644 --- a/kernel/page.class.php +++ b/kernel/page.class.php @@ -130,7 +130,7 @@ class Page extends fileContent return $url.'/'.$tmp; } - return $htmlPath.'/'.$tmp; + return '/'.$htmlPath.'/'.$tmp; } public function parentKey() diff --git a/kernel/post.class.php b/kernel/post.class.php index 39357a9c..e8d23835 100644 --- a/kernel/post.class.php +++ b/kernel/post.class.php @@ -120,7 +120,7 @@ class Post extends fileContent return $url.'/'.$tmp; } - return $htmlPath.'/'.$tmp; + return '/'.$htmlPath.'/'.$tmp; } } diff --git a/themes/pure/php/sidebar.php b/themes/pure/php/sidebar.php index f64826ce..bfc9f59b 100644 --- a/themes/pure/php/sidebar.php +++ b/themes/pure/php/sidebar.php @@ -18,7 +18,7 @@ $parents = $pagesParents[NO_PARENT_CHAR]; foreach($parents as $parent) { // Print the parent - echo ''.$parent->title().''; + echo ''.$parent->title().''; // Check if the parent hash children if(isset($pagesParents[$parent->key()])) @@ -29,7 +29,7 @@ foreach($parents as $parent) echo ''; } @@ -37,4 +37,4 @@ foreach($parents as $parent) ?> - + \ No newline at end of file