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 916f105 commit a9d2934Copy full SHA for a9d2934
packages/next/src/server/base-server.ts
@@ -1249,14 +1249,9 @@ export default abstract class Server<
1249
if (pageIsDynamic) {
1250
let params: ParsedUrlQuery | false = {}
1251
1252
- // If we don't already have valid params, try to parse them from
1253
- // the query params.
1254
- if (!paramsResult.hasValidParams) {
1255
- paramsResult = utils.normalizeDynamicRouteParams(
1256
- queryParams,
1257
- false
1258
- )
1259
- }
+ // ensure we normalize the dynamic route params for encoding/
+ // default values
+ paramsResult = utils.normalizeDynamicRouteParams(queryParams, false)
1260
1261
// for prerendered ISR paths we attempt parsing the route
1262
// params from the URL directly as route-matches may not
0 commit comments