Fixes bug from optimisation where deepest category was incorrectly calculated leading to misplaced pages in nav bar

This commit is contained in:
Rosia E Evans 2023-10-13 17:27:17 +01:00
parent 8cfcf1a721
commit 7b7f967d74
10 changed files with 9 additions and 21 deletions

View file

@ -59,15 +59,6 @@ std::string Page::getInUrl()
return sourceFileUrl;
}
// includes first /
std::string Page::getRelativeInUrl()
{
int start = strlen(SOURCE_FILE_FOLDER)+1;
std::string relativeUrl = std::string(sourceFileUrl).substr(start, sourceFileUrl.length()-start);
relativeUrl.replace(relativeUrl.length()-3, 3, ".html");
return relativeUrl;
}
FileFlags Page::getPageFlags()
{
return flags;