Skip to content

Commit

Permalink
Merge pull request #4148 from waldenraines/5913
Browse files Browse the repository at this point in the history
Fixes #5913, BZ1093601 let org-switcher clear URLs pass through bastion.
  • Loading branch information
Walden Raines committed May 23, 2014
2 parents a8d5af3 + 3a3992f commit 3d8709f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ angular.module('Bastion').run(['$rootScope', '$state', '$stateParams', 'gettextC
);

// Prevent angular from handling org/location switcher URLs
orgSwitcherRegex = new RegExp("/(organizations|locations)/.+/select");
orgSwitcherRegex = new RegExp("/(organizations|locations)/(.+/)*(select|clear)");
$rootScope.$on('$locationChangeStart', function (event, newUrl) {
if (newUrl.match(orgSwitcherRegex)) {
event.preventDefault();
Expand Down

0 comments on commit 3d8709f

Please sign in to comment.