fixes bug introduced where files relative out url is incorrectly calculated
This commit is contained in:
parent
4874c3cef0
commit
8575ee8250
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ std::string Page::getOutUrl()
|
||||||
std::string Page::getRelativeOutUrl()
|
std::string Page::getRelativeOutUrl()
|
||||||
{
|
{
|
||||||
int start = sourceFileUrl.find_last_of("/");
|
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");
|
relativeUrl.replace(relativeUrl.length()-3, 3, ".html");
|
||||||
return relativeUrl;
|
return relativeUrl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue