Skip to content

Commit 4b89483

Browse files
authored
Add canonical base url to assembler build (#797)
1 parent 6a710e0 commit 4b89483

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/docs-assembler/Building/AssemblerBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ private async Task BuildAsync(Checkout checkout, PublishEnvironment environment,
7070
UrlPathPrefix = environment.PathPrefix,
7171
Force = false,
7272
AllowIndexing = environment.AllowIndexing,
73+
CanonicalBaseUrl = new Uri("https://www.elastic.co"), // Always use the production URL. In case a page is leaked to a search engine, it should point to the production site.
7374
SkipMetadata = true
7475
};
7576

0 commit comments

Comments
 (0)