title: MVC 4 - Razor - Pass a variable into a href url
body: <p>How can I pass a variable into a url?</p>
  
  <p>What I try is this but this is not working. The url only shows this:</p>
  
  <p><code>http://myurltest.com</code> and not the full path</p>
  
  <pre><code>@if(check1 != "d")
  {    
      &lt;li&gt;
          &lt;div class="a"&gt;&lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;div class="b"&gt;&lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="http://myurltest.com/" + @check1 + "/go/5/true"&gt;
          &lt;div class="c"&gt;&lt;/div&gt;
          &lt;/a&gt;
      &lt;/li&gt;
  }
  </code></pre>