With a URL (where% 2f is a escape slash), asp.net will unset% 2f so that my application The perspective of (and from the perspective of asp.net mvc) URL is:
Since my application uses asp.net mvc, this behavior can easily cause problems with routing if I have a I want to specify the route "/ Myid / {ID}" because the path of unpacking asp.net will not match that path.
According to the answer to this question: And according to this MSDN page: Solution (.Net 4.0) is to put the following in your web.config:
& lt; Uri & gt; & Lt; SchemeSettings & gt; & Lt; Add name = "http" option to normal url = "do notunspapadots and slabs" /> & Lt; / SchemeSettings & gt; & Lt; / Uri & gt; But I can not really get it to work - "% 2f" is still automatically being unsecured in "/" Does anyone know that the configuration setting Why is not it working for, or is there any other suggestion?
An easy solution is to use a catch-all tokens, eg {controller} / {Action} / {* id}
Comments
Post a Comment