diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index fe87f5c38..a3cf8c3be 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -204,7 +204,8 @@ namespace kiwix { if (!pathToSave.empty() && pathToSave != pathToOpen) { book.path = pathToSave; - book.pathAbsolute = pathToSave; + book.pathAbsolute = isRelativePath(pathToSave) ? + computeAbsolutePath(removeLastPathElement(writableLibraryPath, true, false), pathToSave) : pathToSave; } if (!checkMetaData ||