Skip to content

[Bug]: edge rendered dynamic routes do not correctly parse slugs into params #1890

Closed
@orinokai

Description

@orinokai

Summary

Dynamic routes rendered on the edge with runtime: 'experimental-edge' do not correctly parse the slug into the page parameters.

This is demonstrated by the failing e2e test: edge-render-getserversideprops

Steps to reproduce

  1. Clone the repro and deploy to Netlify
  2. Visit /123?hello=world

Expected: {"url":"/123?hello=world","query": {"hello":"world" ,"id":"123"},"params": {"id":"123"},"now": 1673955487763}

Actual: {"url":"/123?hello=world","query": {"hello":"world"},"now": 1673955487763}

A link to a reproduction repository

https://github.com/orinokai/test-next-edge-slug

Next Runtime version

4.30.0

More information about your build

  • I am building using the CLI
  • I am building using file-based configuration (netlify.toml)

What OS are you using?

None

Your netlify.toml file

No response

Your public/_redirects file

No response

Your next.config.js file

No response

Builds logs (or link to your logs)

No response

Function logs

No response

.next JSON files

No response

Metadata

Metadata

Assignees

Labels

type: bugcode to address defects in shipped code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions