Skip to content

Commit

Permalink
fix the support of alternative host (#8157)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryBerryMS authored Aug 30, 2022
1 parent 361e4cf commit 4c97cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docfx/build/link/LinkResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public LinkResolver(
return (errors, "", fragment, LinkType.AbsolutePath, null, false);
}
var resolvedHref = _config.RemoveHostName ? UrlUtility.RemoveLeadingHostName(href, _config.HostName) : href;
resolvedHref = _config.RemoveHostName ? UrlUtility.RemoveLeadingHostName(resolvedHref, _config.AlternativeHostName) : resolvedHref;
resolvedHref = UrlUtility.RemoveLeadingHostName(resolvedHref, _config.AlternativeHostName);

return (errors, resolvedHref, fragment, LinkType.AbsolutePath, null, false);
}
Expand Down

0 comments on commit 4c97cf4

Please sign in to comment.