From c771135fd852a972a775abe6b1a5e4199cc5191b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 13 Jul 2022 18:28:04 +0900 Subject: [PATCH] chore(client): fix routing --- packages/client/src/nirax.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/nirax.ts b/packages/client/src/nirax.ts index 7587901d70..4efa0345af 100644 --- a/packages/client/src/nirax.ts +++ b/packages/client/src/nirax.ts @@ -128,7 +128,9 @@ export class Router extends EventEmitter<{ props.set(p.name, safeURIDecode(parts[0].substring(p.startsWith.length))); parts.shift(); } else { - props.set(p.name, safeURIDecode(parts[0])); + if (parts[0]) { + props.set(p.name, safeURIDecode(parts[0])); + } parts.shift(); } }