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(); } }