asp.net mvc 5.2 - MVC5 relative path not working -


i update web application mvc5. since requires razor 3.0 updated well.

suddenly relative paths not resolved anymore, in _layout.cshtml link this:

<link rel="stylesheet" href="~/content/main.min.css" /> 

is ok while rendering home page http://example.com , it's not referring root when rendering page http://example.com/level1/test

the link resolved as: root/level1/content/main.min.css

i found reason, here's link explains well: url rewrite issues asp.net razor 3


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -