1
I have the following problem, when using the Rule below my default directory is changed and mine js scripts and files css stop working.
<rule name="Produtos Detalhe">
<match url="^(produto)\/(.*)\/(.*)\/?$" />
<action type="Rewrite" url="/Produto/Detalhe?id={R:3}" />
</rule>
Example, this code:
<link href="@Href("~/Content/Site/css/bootstrap.min.css")" rel="stylesheet">
It’s getting like this after rendered:
<link href="/produto/Content/Site/css/bootstrap.min.css" rel="stylesheet">
I’d like you to stay:
<link href="/Content/Site/css/bootstrap.min.css" rel="stylesheet">
Have you tried to take the tilde of this instruction?
@Href("~/Content/Site/css/bootstrap.min.css")
– Gabriel