[Kimchi-devel] [PATCH] Have the quote deleted from the url located in "lastPage"

wenwang at linux.vnet.ibm.com wenwang at linux.vnet.ibm.com
Mon Jul 14 09:02:53 UTC 2014


From: Wen Wang <wenwang at linux.vnet.ibm.com>

Enabled Redirection for reload by having the quote deleted from
the url located in "lastPage"

Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.login.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui/js/src/kimchi.login.js b/ui/js/src/kimchi.login.js
index a547999..0c11e45 100644
--- a/ui/js/src/kimchi.login.js
+++ b/ui/js/src/kimchi.login.js
@@ -55,7 +55,7 @@ kimchi.login_main = function() {
             }
             else {
                 // lastPage is displayed with " ". How to exclude " " from string?
-                var lastPage = kimchi.cookie.get('lastPage');
+                var lastPage = kimchi.cookie.get('lastPage').replace(/\"/g,'');
                 var next_url = lastPage ? lastPage : "/"
             }
             window.location.replace(next_url)
-- 
1.7.1




More information about the Kimchi-devel mailing list