Stip 'index' off when generating the page list
This commit is contained in:
parent
02e4492ecd
commit
08cfdcf460
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ class AntPages
|
|||
$pageFunctionalPath = '/';
|
||||
}
|
||||
|
||||
if(str_ends_with($pageFunctionalPath, 'index')){
|
||||
$pageFunctionalPath = substr($pageFunctionalPath, 0, -5);
|
||||
}
|
||||
|
||||
$currentPage = array(
|
||||
'pageTitle' => $pageHeader['title'],
|
||||
'fullPagePath' => $page,
|
||||
|
|
Loading…
Reference in a new issue