StackedRouter: initializing stack supports query
This commit is contained in:
parent
3444068fd8
commit
a7bca9bd67
1 changed files with 5 additions and 1 deletions
|
@ -578,7 +578,11 @@ const StackedRouter: Component<StackedRouterProps> = (oprops) => {
|
|||
createRenderEffect(() =>
|
||||
untrack(() => {
|
||||
if (stack.length === 0) {
|
||||
pushFrame(window.location.pathname, {
|
||||
const parts = [window.location.pathname] as string[]
|
||||
if (window.location.search) {
|
||||
parts.push("?", window.location.search)
|
||||
}
|
||||
pushFrame(parts.join(''), {
|
||||
replace: "all",
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue