diff options
Diffstat (limited to 'Userland/Libraries/LibManual/SectionNode.cpp')
-rw-r--r-- | Userland/Libraries/LibManual/SectionNode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibManual/SectionNode.cpp b/Userland/Libraries/LibManual/SectionNode.cpp index d7466e5054..deae4a482d 100644 --- a/Userland/Libraries/LibManual/SectionNode.cpp +++ b/Userland/Libraries/LibManual/SectionNode.cpp @@ -6,6 +6,7 @@ #include "SectionNode.h" #include "PageNode.h" +#include "Path.h" #include <AK/LexicalPath.h> #include <AK/QuickSort.h> #include <LibCore/DirIterator.h> @@ -14,7 +15,7 @@ namespace Manual { ErrorOr<String> SectionNode::path() const { - return String::formatted("/usr/share/man/man{}", m_section); + return String::formatted("{}/{}{}", manual_base_path, top_level_section_prefix, m_section); } ErrorOr<String> SectionNode::name() const |