We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e938d9 commit e1952c7Copy full SHA for e1952c7
router/src/link.rs
@@ -133,16 +133,14 @@ where
133
let is_active = {
134
let href = href.clone();
135
move || {
136
- href.read().as_deref().is_some_and(|to| {
137
- let path = normalize_path(to);
138
- current_url.with(|loc| {
139
- let loc = loc.path();
140
- if exact {
141
- loc == path
142
- } else {
143
- is_active_for(&path, loc, strict_trailing_slash)
144
- }
145
- })
+ let path = normalize_path(&href.read());
+ current_url.with(|loc| {
+ let loc = loc.path();
+ if exact {
+ loc == path
+ } else {
+ is_active_for(&path, loc, strict_trailing_slash)
+ }
146
})
147
}
148
};
0 commit comments