Skip to content

Commit de04224

Browse files
Apply suggestion from @BenjaminMichaelis
1 parent c530f02 commit de04224

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EssentialCSharp.Web/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public IActionResult Index()
2222
}
2323
else if (siteMapping is not null)
2424
{
25-
string filePath = Path.Join(hostingEnvironment.ContentRootPath, siteMapping.PagePath);
25+
string filePath = Path.Join(hostingEnvironment.ContentRootPath, Path.Join(siteMapping.PagePath));
2626
HtmlDocument doc = new();
2727
doc.Load(filePath);
2828
string headHtml = doc.DocumentNode.Element("html").Element("head").InnerHtml;

0 commit comments

Comments
 (0)