Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in TemplateBase.ResolveUrl() ? #37

Open
oliverlexis opened this issue Aug 30, 2014 · 0 comments
Open

Bug in TemplateBase.ResolveUrl() ? #37

oliverlexis opened this issue Aug 30, 2014 · 0 comments

Comments

@oliverlexis
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant