From 33f62495ad67b3ecddd0896af81711a22b270e13 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 6 May 2013 00:50:36 +0200 Subject: [PATCH] Added more debug log. --- app/assets/javascripts/app/controllers/login.js.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/login.js.coffee b/app/assets/javascripts/app/controllers/login.js.coffee index 1cd55c6dd..ec82a39a7 100644 --- a/app/assets/javascripts/app/controllers/login.js.coffee +++ b/app/assets/javascripts/app/controllers/login.js.coffee @@ -87,12 +87,15 @@ class Index extends App.ControllerContent } # redirect to # - if @Config.get( 'requested_url' ) isnt '' - @navigate @Config.get( 'requested_url' ) + requested_url = @Config.get( 'requested_url' ) + if requested_url isnt '' + console.log("REDIRECT to '#{requested_url}'") + @navigate requested_url # reset @Config.set( 'requested_url', '' ) else + console.log("REDIRECT to -#/-") @navigate '#/' error: (xhr, statusText, error) =>