title: Flask permanently redirects to /index after raising RequestRedirect('index')
body: <p>So I am using flask 0.9 with python 2.7.  In an attempt to be sneaky without actually understanding what I'm doing, I messed up my url routing.</p>
  
  <p>I am using flask-admin to whip up a quick interface.  Here is what I did:</p>
  
  <pre><code>from flask.ext.admin import AdminIndexView
  from werkzeug.routing import RequestRedirect
  
  class IndexView(AdminIndexView):
  def is_accessible(self):
      if current_user.is_authenticated and current_user.has_role('admin'):
          return True
      else:
          raise RequestRedirect('index')
  </code></pre>
  
  <p>My intent was for this to work like return redirect('index') in a flask-view, alas it did not work as planned.  It just made it so /admin ALWAYS routed to /index after the first time it triggered.</p>
  
  <p>So now, after removing the code and changing the raise statement to return False, my applications are still redirecting /admin to /index (even with a completely different app created on a different virtual environment)..</p>
  
  <p>Any help is greatly appreciated!</p>