-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hi, I really like your RazorMachine, I just switched from RazorEngine to RazorMachine, because it is much easier to use.
But, maybe there is a small bug in TemplateBase.ResolveUrl(). When in source file you write something like: a href="/folder/@Model.SomeString", the part before the @ is passed correctly to ResolveUrl with parameter path = "/folder/". But because the VirtualPath is normalized, the trailing slash is removed. After adding the string variable from the model, it Ends up like that:
a href="/approot/folderTheString" the slash in between is missing the the link doesn't work.
Can you add functionality to ResolveUrl to check whether to add an trailing slash after call of .Normalize()?
Thanks, Oliver.
Metadata
Metadata
Assignees
Labels
No labels