CLOUDSTACK-1065: cloudstack UI - AWS Style Regions - when switching to another region, handle a case that the region's end point is not "http://hostname:port/client/"

This commit is contained in:
Jessica Wang 2013-03-25 15:30:01 -07:00
parent 16250f8e4b
commit ac18b9b0f7

View File

@ -59,7 +59,7 @@ $(document).ready(function() {
*/ */
if ($.urlParam('loginUrl') != 0) { if ($.urlParam('loginUrl') != 0) {
$.cookie('loginUrl', $.urlParam('loginUrl'), { expires: 1}); $.cookie('loginUrl', $.urlParam('loginUrl'), { expires: 1});
document.location.href = '/client/'; document.location.href = window.location.href.substring(0, window.location.href.indexOf('?'));
} }
/* /*