Fix page url for edge routes in app dir (#40361)
For edge routes in app dir, we passed the page name as url so that the url will be incorrect: * a non-dynamic route `/dashboard` will become `/dashboard/page` * a dynamic route `/dynamic/[id]` with url `/dyanmic/123` will still hit `/dynamic/page/[id]/page` This PR uses normalized `params.page` with interoplated as correct pathname for the page.
Showing
Please
register
or
sign in
to comment