diff --git a/examples/pokedex/adapter.js b/examples/pokedex/adapter.js index a7b698a3..64a59d73 100644 --- a/examples/pokedex/adapter.js +++ b/examples/pokedex/adapter.js @@ -303,13 +303,13 @@ function apiPatternToRedirectPattern(pathPattern) { return ( "/" + pathPattern - .map((segment) => { + .map((segment, index) => { switch (segment.kind) { case "literal": { return segment.value; } case "dynamic": { - return ":dynamic"; // TODO need to assign different names for each dynamic segment? + return `:dynamic${index}`; // TODO need to assign different names for each dynamic segment? } default: { throw "Unhandled segment: " + JSON.stringify(segment);