title: In grails how to insert additional parameters (from session) in all url's
body: <p>I would like to add an additional parameter in my url, the use case is the following:</p>
  
  <p>When user do their login they also specify a 'company' name and from that moment on, all urls should map to:</p>
  
  <pre><code> /$company/$controller/$action/$id
  </code></pre>
  
  <p>The main idea is to have the current company name available in all url's, have it bookmarkable, and not to have to pass the company name everywhere as a request parameter. </p>
  
  <p>Also, once users are logged in it is acceptable to have the chosen company name in session scope.</p>
  
  <p>What is the right way of inserting this parameter in all our urls? I tried to modify my UrlMappings mapping, but I didn't found a way to insert the company name.</p>
  
  <p>Thanks,</p>