diff --git a/crates/next-core/src/app_page_loader_tree.rs b/crates/next-core/src/app_page_loader_tree.rs index d91683f3890e3..b991a5205291d 100644 --- a/crates/next-core/src/app_page_loader_tree.rs +++ b/crates/next-core/src/app_page_loader_tree.rs @@ -250,7 +250,7 @@ impl AppPageLoaderTreeBuilder { let metadata_route = &*get_metadata_route_name((*item).into()).await?; writeln!( self.loader_tree_code, - "{s} url: fillMetadataSegment({}, props.params, {}) + \ + "{s} url: fillMetadataSegment({}, await props.params, {}) + \ `?${{{identifier}.src.split(\"/\").splice(-1)[0]}}`,", StringifyJs(&pathname_prefix), StringifyJs(metadata_route),