Skip to content

Commit

Permalink
Fix: forked query wasn't opening in MULTI_ORG env (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Jan 1, 2019
1 parent 0449a3f commit 08b86c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/app/pages/queries/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ function QueryViewCtrl(

$window.open('', tabName);
Query.fork({ id: $scope.query.id }, (newQuery) => {
const url = newQuery.getSourceLink();
$window.open(url, tabName);
const queryUrl = newQuery.getUrl(true);
$window.open(queryUrl, tabName);
});
};

Expand Down Expand Up @@ -508,4 +508,3 @@ export default function init(ngModule) {
}

init.init = true;

0 comments on commit 08b86c1

Please sign in to comment.