Fixed regression on nav active states + bad default entry point

This commit is contained in:
emeric
2026-06-04 23:25:04 +02:00
parent 59b710ea37
commit 09468e2c2d
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -525,6 +525,7 @@ namespace lms::ui
});
mainRouter->activate();
doJavaScript(javaScriptClass() + ".updateActiveNav('" + wApp->internalPath() + "')");
}
void LmsApplication::notify(const Wt::WEvent& event)
+1 -2
View File
@@ -38,11 +38,10 @@ namespace lms::ui
void PathRouter::activate()
{
handlePathChange();
LmsApp->internalPathChanged().connect(this, [this] {
handlePathChange();
});
handlePathChange();
}
void PathRouter::handlePathChange()