title: How can i redirect when person type in url browser?
body: <p>I have two methods ,(register and confirm methods),when submit register,send message in mobile for verification,then person type and the code is correct ,i return this code and pass to response of jquery</p>
  
  <pre><code>  return JsonResponse({'code':1,'url': '/user/confirm'})
  </code></pre>
  
  <p>in jquery code with window.location() ,it will redirect into confirm page,
  but i want to when person type this url and Enter ,he can not open this page(confirm page) and redirect into other page.</p>