Skip to content

Commit 173dfa0

Browse files
Additional tests
1 parent 0ad65a8 commit 173dfa0

File tree

6 files changed

+603
-437
lines changed

6 files changed

+603
-437
lines changed

Engine/Infrastructure/CoreRouter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ private static string RenderAdditions(IModel model, PageAdditions? additions)
9797
{
9898
foreach (var style in additions.Styles)
9999
{
100-
builder.AppendLine($"<link rel=\"stylesheet\" href=\"{model.Handler.Route(model.Request, style.Path)}\" />");
100+
builder.AppendLine($"<link rel=\"stylesheet\" href=\"{model.Handler.Route(model.Request, style.Path) ?? style.Path}\" />");
101101
}
102102

103103
foreach (var script in additions.Scripts)
104104
{
105-
builder.AppendLine($"<script src=\"{model.Handler.Route(model.Request, script.Path)}\"></script>");
105+
builder.AppendLine($"<script src=\"{model.Handler.Route(model.Request, script.Path) ?? script.Path}\"></script>");
106106
}
107107
}
108108

0 commit comments

Comments
 (0)