Put a slash at the end of Url?

0

I'm doing a mapping in web.config for when the person accesses the project root, already loading ~ / Default.aspx

 <urlMappings enabled="true">
  <add url="~/" mappedUrl="~/Default.aspx" />
 </urlMappings>

Mapped URL> link

But I want to always add a slash at the end of the url:

link

How to do this through project setup?

    
asked by anonymous 06.12.2016 / 19:55

1 answer

0

You can do this using urlMapping yourself, creating 2 rules as shown below:

<add url="~/premio/" mappedUrl="~/About.aspx" />
<add url="~/premio" mappedUrl="~/About.aspx" />

Doubts, I am at your disposal.

    
02.01.2017 / 16:39