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/"
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ac18b9b0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ac18b9b0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ac18b9b0 Branch: refs/heads/scaleupvm Commit: ac18b9b0f7f11ce2a061ce9b15feb356b4dcf4cf Parents: 16250f8 Author: Jessica Wang <[email protected]> Authored: Mon Mar 25 15:30:01 2013 -0700 Committer: Jessica Wang <[email protected]> Committed: Mon Mar 25 15:30:32 2013 -0700 ---------------------------------------------------------------------- ui/scripts/cloud.core.callbacks.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ac18b9b0/ui/scripts/cloud.core.callbacks.js ---------------------------------------------------------------------- diff --git a/ui/scripts/cloud.core.callbacks.js b/ui/scripts/cloud.core.callbacks.js index 6384f9b..1a9e045 100644 --- a/ui/scripts/cloud.core.callbacks.js +++ b/ui/scripts/cloud.core.callbacks.js @@ -59,7 +59,7 @@ $(document).ready(function() { */ if ($.urlParam('loginUrl') != 0) { $.cookie('loginUrl', $.urlParam('loginUrl'), { expires: 1}); - document.location.href = '/client/'; + document.location.href = window.location.href.substring(0, window.location.href.indexOf('?')); } /*
