title: ActionLink and relative path
body: <p>I can't find out how to solve this. I have two URLs. These are <code>/my-url-1</code> and <code>/my-url-2</code>. Both going to different views.</p>
  
  <p>The thing is that I have an ActionLink on <code>/my-url-1</code>'s view which should make <code>/my-url-2</code> and go to that view. </p>
  
  <p>The problem is that ActionLink makes <code>/my-url-1/my-url-2</code> as the URL and not just <code>/my-url-2</code>.</p>
  
  <p>I was searching two days about how to fix it but couldn't find anything. </p>
  
  <p>PD: I'm not using Areas so please don't tell me that I just should put the "area" parameter as a "". </p>
  
  <p>These are two urls which goes to different controllers and different actions.</p>
  
  <p>View which has the ActionLink (URL:<code>/my-url-1</code>) : </p>
  
  <pre><code>&lt;div class="btn-index-container"&gt;
       @Html.ActionLink("Url 2", "MyAction", "MyController")
  &lt;/div&gt;
  </code></pre>
  
  <p>This ActionLink should render:</p>
  
  <pre><code>&lt;a href="/my-url-2"&gt;Url 2&lt;/a&gt;
  </code></pre>
  
  <p>But it's rendering: </p>
  
  <pre><code>&lt;a href="/my-url-1/my-url-2"&gt;Url 2&lt;/a&gt;
  </code></pre>
  
  <p>where <code>/my-url-1</code> is my current URL</p>
  
  <p><strong>Route Config</strong></p>
  
  <pre><code>         routes.MapRoute(
              name: "route1",
              url: "my-url-2", //without parameters
              defaults: new { controller = "MyController", action = "MyAction" },
          );
  
          routes.MapRoute(
              name: "route2",
              url: "my-url-1", //without parameters too
              defaults: new { controller = "MyController2", action = "MyAction2" }
          );
  </code></pre>
  
  <p>So, when I go to <code>localhost:port/my-url-1</code> it loads <code>MyAction2</code> which renders a view. This view has inside an <code>ActionLink</code>(described above) which should render a <code>/my-url-2</code> link.</p>