title: Mapping URL in main menu to every page
body: <p>I am using in my <code>grails 2.3.4</code> project with <code>spring security</code> and <code>spring securit ui</code>.</p>
  
  <p>I am having scaffolde my domain <code>contact</code> to the view. I have also a <code>.gsp</code> page which is not scarfolded.</p>
  
  <p>My links from my main menue looks like that:</p>
  
  <pre><code>&lt;li&gt;&lt;a href="pricing"&gt;Pricing&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="contact/create"&gt;Contact&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Thats my <code>URLMappings</code></p>
  
  <pre><code>class UrlMappings {
  
      static mappings = {
  
          "/$controller/$action?/$id?(.${format})?"{
              constraints {
                  // apply constraints here
              }
          }
  
          "/private/$controller/$action?/$id?(.${format})?"{
              constraints {
                  // apply constraints here
              }
          }
  
          "/"(view:"/index")
          "/pricing"(view:"/pricing")
          "/private/dashboard"(view:"/private/dashboard")
          "/contact/create"(view:"/contact/create")
          "500"(view:'/error')
  
      }
  }
  </code></pre>
  
  <p>My problem is when I am using this two links from my mainpage <code>/</code> then everythings works fine. However using them from <code>5432:localhost/TestApp/pricing</code> I am getting the link <code>5432:localhost/TestApp/pricing/contact/create</code>
  which goes is not available. If I am using <code>&lt;li&gt;&lt;a href="../contact/create"&gt;Contact&lt;/a&gt;&lt;/li&gt;</code>, I am going to <code>5432:localhost/contact/create</code>, which is also not available. How to go to <code>contact/create</code> from every page?</p>
  
  <p>I appreciate your reply!</p>