From: Wen Wang <wenwang(a)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(a)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