🎨 (pagetop): Mejora gestión de URLs según contexto

This commit is contained in:
Manuel Cillero 2025-12-03 06:41:52 +01:00
parent be0da21656
commit cbd1cd2b2f
6 changed files with 32 additions and 28 deletions

View file

@ -115,7 +115,7 @@ impl Component for Item {
} => {
let path = path(cx);
let current_path = cx.request().map(|request| request.path());
let is_current = !*disabled && (current_path == Some(path));
let is_current = !*disabled && (current_path == Some(&path));
let mut classes = "nav-link".to_string();
if is_current {