Stip 'index' off when generating the page list

This commit is contained in:
Belle Aerni 2023-01-17 20:18:13 -08:00
parent 02e4492ecd
commit 08cfdcf460

View file

@ -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,