From 8575ee825030f0b57183cf541f61cce2c9e35a2b Mon Sep 17 00:00:00 2001 From: Rosia E Evans Date: Mon, 30 Oct 2023 12:24:56 +0000 Subject: [PATCH] fixes bug introduced where files relative out url is incorrectly calculated --- Src/Page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Page.cpp b/Src/Page.cpp index 913fd80..2d640f5 100644 --- a/Src/Page.cpp +++ b/Src/Page.cpp @@ -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; }