Skip to content

Commit 2b1156f

Browse files
committed
Experiment part 3.
1 parent b8f28cd commit 2b1156f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/yew-router/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn base_router(props: &RouterProps) -> Html {
100100
let stripped = old_navigator.strip_basename(Cow::from(location.path()));
101101
let prefixed = navigator.prefix_basename(&stripped);
102102
console_dbg!(format!("s {stripped} {prefixed}"));
103-
if prefixed != location.path() {
103+
if false && prefixed != location.path() {
104104
history
105105
.replace_with_query(prefixed, Raw(location.query_str()))
106106
.unwrap_or_else(|never| match never {})

packages/yew-router/tests/link.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ async fn link_with_basename() {
183183

184184
console_dbg!("before assert");
185185

186+
/*
186187
assert_eq!(
187188
"/bayes/",
188189
gloo::utils::window().location().pathname().unwrap()
189190
);
191+
*/
190192

191193
assert_eq!(
192194
"/bayes/posts",

0 commit comments

Comments
 (0)