Skip to content

Commit fcd0b84

Browse files
committed
feat: bug fixes and general improvements
1 parent fc18e01 commit fcd0b84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Now you have created a new solution and are ready to proceed with the next steps
181181
{
182182
public void Process(IRenderContext renderContext, VisualTree visualTree)
183183
{
184-
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Append("/assets/img/favicon.png")));
184+
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Concat("/assets/img/favicon.png").ToString()));
185185
visualTree.Content = new HtmlText(I18N.Translate("HelloWorld:homepage.text"));
186186
}
187187
}

src/HelloWorld/WebPage/HomePage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public HomePage(IPageContext pageContext)
3131
/// <param name="visualTree">The visual tree to be rendered.</param>
3232
public void Process(IRenderContext renderContext, VisualTree visualTree)
3333
{
34-
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Append("/assets/img/favicon.png")));
34+
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Concat("/assets/img/favicon.png").ToString()));
3535
visualTree.Content = new HtmlText(I18N.Translate("HelloWorld:homepage.text"));
3636
}
3737
}

0 commit comments

Comments
 (0)