We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89c1cc commit a3f3320Copy full SHA for a3f3320
packages/react-router/lib/href.ts
@@ -44,7 +44,7 @@ export function href<Path extends keyof Args>(
44
// treat trailing splat the same way as compilePath, and force it to be as if it were `/*`.
45
// `react-router typegen` will not generate the params for a malformed splat, causing a type error, but we can still do the correct thing here.
46
result = result.slice(0, result.endsWith("/*") ? -2 : -1);
47
- if (params && params["*"]) {
+ if (params && params["*"] != null) {
48
result += "/" + params["*"];
49
}
50
0 commit comments