From 191213a8203d3fe306a82cf85cf1b8f26c2b144f Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 3 Nov 2016 14:24:15 -0400 Subject: [PATCH] fix getRelativeUrl() --- model/Post.class.php | 2 +- view/template/content/_postList.php | 2 +- view/template/content/_postNav.php | 8 ++++---- view/template/content/_postSocialShare.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/model/Post.class.php b/model/Post.class.php index b8d8892f..cbc9fa81 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -110,7 +110,7 @@ class Post public function getRelativeUrl() { - return $this->postType . '/' . $this->slug; + return '/' . $this->postType . '/' . $this->slug; } public function getSlug() diff --git a/view/template/content/_postList.php b/view/template/content/_postList.php index a0ec09ab..f723d56c 100644 --- a/view/template/content/_postList.php +++ b/view/template/content/_postList.php @@ -2,7 +2,7 @@

Latest News

diff --git a/view/template/content/_postNav.php b/view/template/content/_postNav.php index 26f6473b..2a43decd 100644 --- a/view/template/content/_postNav.php +++ b/view/template/content/_postNav.php @@ -2,10 +2,10 @@