From d7357ec1ee5bbc8155171579a78c16842d0b9df1 Mon Sep 17 00:00:00 2001 From: Baptiste de Montangon Date: Sat, 21 Sep 2024 01:42:20 +0200 Subject: [PATCH 1/2] fix routing --- leptos_i18n/src/routing.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/leptos_i18n/src/routing.rs b/leptos_i18n/src/routing.rs index d5301443..ccb95ed7 100644 --- a/leptos_i18n/src/routing.rs +++ b/leptos_i18n/src/routing.rs @@ -66,10 +66,16 @@ fn get_new_path( path_builder.build() }); location.search.with_untracked(|search| { - new_path.push_str(search); + if !search.is_empty() { + new_path.push('?'); + new_path.push_str(search); + } }); location.hash.with_untracked(|hash| { - new_path.push_str(hash); + if !hash.is_empty() { + new_path.push('#'); + new_path.push_str(hash); + } }); new_path } From 6a8cc70e309e998fcd02e76e35f3fe30eb3f0752 Mon Sep 17 00:00:00 2001 From: Baptiste de Montangon Date: Sat, 21 Sep 2024 01:59:35 +0200 Subject: [PATCH 2/2] add v0.4 as CI branch --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4e2572c..b7f0af1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,11 @@ on: push: branches: - master + - v0.4 pull_request: branches: - master + - v0.4 env: CARGO_TERM_COLOR: always