Fixes on permalinks
This commit is contained in:
parent
c2477901ff
commit
212ca39a81
|
@ -130,6 +130,10 @@ class Page extends fileContent
|
|||
return $url.'/'.$tmp;
|
||||
}
|
||||
|
||||
if(empty($htmlPath)) {
|
||||
return '/'.$tmp;
|
||||
}
|
||||
|
||||
return '/'.$htmlPath.'/'.$tmp;
|
||||
}
|
||||
|
||||
|
|
|
@ -120,6 +120,10 @@ class Post extends fileContent
|
|||
return $url.'/'.$tmp;
|
||||
}
|
||||
|
||||
if(empty($htmlPath)) {
|
||||
return '/'.$tmp;
|
||||
}
|
||||
|
||||
return '/'.$htmlPath.'/'.$tmp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue