diff --git a/modules/admin_panel/admin_panel.cpp b/modules/admin_panel/admin_panel.cpp index 1aa57ac..257cd4e 100644 --- a/modules/admin_panel/admin_panel.cpp +++ b/modules/admin_panel/admin_panel.cpp @@ -64,7 +64,7 @@ void AdminPanel::render_admin_panel_list(Request *request) { for (int j = 0; j < links.size(); ++j) { AdminSectionLinkInfo &li = links[j]; - b.a()->href(rootlink + li.link); + b.a()->href(rootlink + s.section_url + "/" + li.link); b.w(li.name); b.ca(); } diff --git a/modules/rbac/rbac_controller.cpp b/modules/rbac/rbac_controller.cpp index e1c3979..a8fac91 100644 --- a/modules/rbac/rbac_controller.cpp +++ b/modules/rbac/rbac_controller.cpp @@ -15,7 +15,7 @@ void RBACController::create_validators() { } void RBACController::admin_add_section_links(Vector *links) { - links->push_back(AdminSectionLinkInfo("Test", "test/test")); + links->push_back(AdminSectionLinkInfo("Test", "test")); } RBACController *RBACController::get_singleton() {