title: Strange cflocation behavior: redirecting to page but not updating url
body: <p>I have a basic mobile login page in ColdFusion that allows the user to enter a username and password and log in. On successful login, the page redirects to the home page using a cflocation. However, while the page redirects successfully to the home page, it still displays the login page URL in the location bar. We have used cflocation many times throughout our web application and I have never come across this behavior before and can't figure out what could be causing it.</p>
  
  <p>The gist of the page code:</p>
  
  <pre><code>&lt;cfparam name="invalidLogin" default="false"&gt;
  &lt;cfif cgi.REQUEST_METHOD EQ "POST" AND isDefined("form.email") AND isDefined("form.password") and len(trim(form.email)) and len(trim(form.password))&gt;
      &lt;!--- call the login method ---&gt;
      &lt;cfinvoke component="login" method="userlogin" returnvariable="userData"&gt;
          &lt;cfinvokeargument name="userName" value="#form.email#"&gt;
          &lt;cfinvokeargument name="password" value="#form.password#"&gt;
      &lt;/cfinvoke&gt;
  
      &lt;cfif userData.isLoggedIn&gt;
          &lt;cflocation url="index.cfm" addtoken="no"&gt;
      &lt;/cfif&gt;
      &lt;cfset invalidLogin = true /&gt;
  &lt;/cfif&gt;
  
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
          &lt;title&gt;Log In&lt;/title&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
          &lt;link href="css/jquery.mobile.structure-1.3.2.css" rel="stylesheet" type="text/css" /&gt;
          &lt;link href="css/jquery.mobile-1.3.2.css" rel="stylesheet" type="text/css" /&gt;
          &lt;link href="css/common.css" rel="stylesheet" type="text/css" /&gt;
          &lt;script type="text/javascript" src="js/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/jquery.mobile-1.3.2.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/common.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div data-role="page" class="bg-color"&gt;
              &lt;div class="container"&gt;
                  &lt;div data-role="content"&gt;
                      &lt;div class="article"&gt;
                          &lt;div class="logoDiv"&gt;
                              &lt;img src="img/companyLogo.png" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;form action="" method="post" name="frmLogin" id="frmLogin" class="margin-top" data-transition="slide"&gt;
                          &lt;div&gt;
                              &lt;input type="text" name="email" id="email" placeholder="Username"&gt;
                              &lt;input type="password" name="password" id="password" placeholder="Password"&gt;
                          &lt;/div&gt;
                          &lt;cfif invalidLogin&gt;&lt;div&gt;Invalid Login&lt;/div&gt;&lt;/cfif&gt;
                          &lt;div&gt;
                              &lt;input type="submit" value="Log In" data-theme="b" /&gt;   
                          &lt;/div&gt;
                      &lt;/form&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>