Skip to content

Commit de9b8f8

Browse files
authored
Fix broken redirects
1 parent 11a4a25 commit de9b8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/build/Build.Website.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void CreateRedirectsFromOldWebsiteUrlsToNewWebsiteUrls(AbsolutePath basePath)
249249

250250
File.WriteAllText(
251251
dir.Parent / $"{dir.Name}.html",
252-
GetRedirect(dir.GetRelativePathTo(basePath).ToString().Replace('\\', '/'))
252+
GetRedirect(basePath.GetRelativePathTo(dir).ToString().Replace('\\', '/'))
253253
);
254254
}
255255

0 commit comments

Comments
 (0)