From 231cc7729035507f165f53bc7431c0400a449703 Mon Sep 17 00:00:00 2001 From: Camille Barneaud <1693643+gadcam@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:48:23 +0100 Subject: [PATCH] Fix missing `await` of `params` when metadata is used with an image file part 2 --- crates/next-core/src/app_page_loader_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),