Minor fix: fixed the link text in NavigationBit generation
authorHarishankar <v.harishankar@gmail.com>
Sun, 24 May 2020 08:52:49 +0000 (14:22 +0530)
committerHarishankar <v.harishankar@gmail.com>
Sun, 24 May 2020 08:52:49 +0000 (14:22 +0530)
Fixed the link text to "title" of the DocumentTree rather than
the "stub" for better readability

biawebdocumenttree.hpp

index 0aba119..eeb8b15 100644 (file)
@@ -227,7 +227,7 @@ namespace biaweb {
         // an inline list
         while (par1 != nullptr) {
             if (par1->parent != nullptr)
-                navbit.get()->add_link_item (GenericLinkItem(par1->stub
+                navbit.get()->add_link_item (GenericLinkItem(par1->title
                             par1->stub_hierarchy() + par1->stub + "/index.html"));
             else
                 navbit.get()->add_link_item (GenericLinkItem(tpl->get_stringbit(HOME), "index.html"));