title: redirect in Grails controller
body: <p>I'm new to Grails , i'm using Grails version 2.3.4 , in my application i have 2 controllers </p>
  
  <blockquote>
    <p>AppUser</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>ManageLicences</p>
  </blockquote>
  
  <p>, in the AppUsers there is a method named auth and below its code : </p>
  
  <pre><code>def auth()
  {
      if (!params.username.empty)
      {
    redirect  (controller: "manageLicences" , action:"checkLicense")
       }
  }
  </code></pre>
  
  <p>In the checkLicense in the ManageLicense controller i'm doing some redirects depending on some conditions</p>
  
  <pre><code>def checkLicense {
  if (someCondition) {
      redirect (controller:'manageLicences' , action:'list')
          }
      else {
          redirect  (controller:'appUsers' , action:'login' )
  
          }
  }
  </code></pre>
  
  <p>, the problem is that when my application reaches  </p>
  
  <pre><code> redirect  (controller: "manageLicences" , action:"checkLicense")
  </code></pre>
  
  <p>in the AppUsers controller , rather going to the redirect that  in checkLicense , the URL in the browser will be  </p>
  
  <pre><code>http://localhost:8080/MyApplication/manageLicences/checkLicense
  </code></pre>
  
  <p>and blank page , any advice ? </p>