Add section url to the admin panel's section links.

This commit is contained in:
Relintai 2021-11-01 01:47:43 +01:00
parent 0c6ea5612d
commit e1ceb543f3
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ void AdminPanel::render_admin_panel_list(Request *request) {
for (int j = 0; j < links.size(); ++j) { for (int j = 0; j < links.size(); ++j) {
AdminSectionLinkInfo &li = links[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.w(li.name);
b.ca(); b.ca();
} }

View File

@ -15,7 +15,7 @@ void RBACController::create_validators() {
} }
void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) { void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
links->push_back(AdminSectionLinkInfo("Test", "test/test")); links->push_back(AdminSectionLinkInfo("Test", "test"));
} }
RBACController *RBACController::get_singleton() { RBACController *RBACController::get_singleton() {