fixes bug introduced where files relative out url is incorrectly calculated

This commit is contained in:
Rosia E Evans 2023-10-30 12:24:56 +00:00
parent 4874c3cef0
commit 8575ee8250

View file

@ -49,7 +49,7 @@ std::string Page::getOutUrl()
std::string Page::getRelativeOutUrl()
{
int start = sourceFileUrl.find_last_of("/");
std::string relativeUrl = std::string(sourceFileUrl).substr(start+1, sourceFileUrl.length()-start);
std::string relativeUrl = std::string(sourceFileUrl).substr(start, sourceFileUrl.length()-start);
relativeUrl.replace(relativeUrl.length()-3, 3, ".html");
return relativeUrl;
}