title: Add a trailing slash at the end of each url?
body: <p>I have a little problem here. I need to add a trailing slash at the end of each url in the site I'm working on. I defined all the links inside the site to have a trailing slash like so: <br /> </p>
  
  <pre><code>&lt;a href="/register/"&gt;Register&lt;/a&gt;
  </code></pre>
  
  <p>While this works fine there's still one tiny issue: it's with the generated urls that come from calling RedirectToAction(). For example: <br /></p>
  
  <pre><code>return RedirectToAction("Register", "Users");
  </code></pre>
  
  <p>Will cause the url to change to /register with no trailing slash. I modified my routing system as so: <br /></p>
  
  <pre><code>  routes.MapRoute("register",
                          "register/",
                          new {controller = "Users", action = "Register"}
              );
  </code></pre>
  
  <p>Still the required trailing slash doesn't get added automatically! <br >
  I looked up this <a href="https://stackoverflow.com/questions/1077206/adding-a-trailing-slash-for-specific-redirection-rules">question</a> and this <a href="https://stackoverflow.com/questions/645853/add-slash-to-the-end-of-every-url-need-rewrite-rule-for-nginx">question</a> but these are totally different as I'm not using any url rewriting libraries, i'm just using asp.net mvc routing system. <br />
  So what do you say guys?</p>