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 a766105 commit 7c23568Copy full SHA for 7c23568
packages/runtime/src/templates/server.ts
@@ -74,7 +74,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
74
const appPathsManifest = this.getAppPathsManifest?.()
75
76
const routes = routesManifest && [...routesManifest.staticRoutes, ...routesManifest.dynamicRoutes]
77
- const matchedRoute = routes?.find((route) => new RegExp(route.regex).test(path))
+ const matchedRoute = routes?.find((route) => new RegExp(route.regex).test(path.split('?')[0]))
78
const isAppRoute =
79
appPathsManifest && matchedRoute ? appPathsManifest[joinPaths(matchedRoute.page, 'page')] : false
80
0 commit comments