title: Spring Security UI - Cannot open register/forgot password page
body: <p>I have put the <code>":spring-security-ui:1.0-RC1"</code> into my <code>BuildConfig</code> and compiled it then I created the <code>auth, register and securityInfo</code> views and controller by using the spring ui command. I also put a user in my db to test it.</p>
  
  <p>However, when I tested it I just get to the login page, after login in I get to the grails page back. However the button <code>Register New User and Forgotten Passoword</code> do not work, I only get redirected to the <code>login</code> page! Even though the file gets correctly rendered to <code>*.html</code>. </p>
  
  <p>This is how the view structure looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/1rVrL.png" alt="enter image description here"></p>
  
  <p>My <code>ÙRLMappings</code> look like that:</p>
  
  <pre><code>class UrlMappings {
  
      static mappings = {
          "/$controller/$action?/$id?(.${format})?"{
              constraints {
                  // apply constraints here
              }
          }
  
          "/"(view:"/index")
          "500"(view:'/error')
      }
  }
  </code></pre>
  
  <p>I would appreciate your answer on my problem!</p>
  
  <p><strong>UPDATE</strong>
  This is my <code>auth.gsp</code>:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
  &lt;title&gt;&lt;g:message code='spring.security.ui.login.title'/&gt;&lt;/title&gt;
  &lt;meta name='layout' content='register'/&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;p/&gt;
  
  &lt;div class="login s2ui_center ui-corner-all" style='text-align:center;'&gt;
      &lt;div class="login-inner"&gt;
      &lt;form action='${postUrl}' method='POST' id="loginForm" name="loginForm" autocomplete='off'&gt;
      &lt;div class="sign-in"&gt;
  
      &lt;h1&gt;&lt;g:message code='spring.security.ui.login.signin'/&gt;&lt;/h1&gt;
  
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;label for="username"&gt;&lt;g:message code='spring.security.ui.login.username'/&gt;&lt;/label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input name="j_username" id="username" size="20" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;label for="password"&gt;&lt;g:message code='spring.security.ui.login.password'/&gt;&lt;/label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="password" name="j_password" id="password" size="20" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan='2'&gt;
                  &lt;input type="checkbox" class="checkbox" name="${rememberMeParameter}" id="remember_me" checked="checked" /&gt;
                  &lt;label for='remember_me'&gt;&lt;g:message code='spring.security.ui.login.rememberme'/&gt;&lt;/label&gt; |
                  &lt;span class="forgot-link"&gt;
                      &lt;g:link controller='register' action='forgotPassword'&gt;&lt;g:message code='spring.security.ui.login.forgotPassword'/&gt;&lt;/g:link&gt;
                  &lt;/span&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan='2'&gt;
                  &lt;s2ui:linkButton elementId='register' controller='register' messageCode='spring.security.ui.login.register'/&gt;
                  &lt;s2ui:submitButton elementId='loginButton' form='loginForm' messageCode='spring.security.ui.login.login'/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
      &lt;/div&gt;
      &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  $(document).ready(function() {
      $('#username').focus();
  });
  
  &lt;s2ui:initCheckboxes/&gt;
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>