[TimeConductor] Fixes issue #1955 (#2023)

- Open in New Tab will preserve TC settings
This commit is contained in:
Dhrubomoy Das Gupta 2018-05-03 19:10:25 -04:00 committed by Andrew Henry
parent 7d754ea143
commit 61e583dbb2

View File

@ -73,10 +73,17 @@ define(
* @returns {string} URL for the domain object
*/
UrlService.prototype.urlForNewTab = function (mode, domainObject) {
var viewPath = "?view=" + this.$location.search().view,
var search = this.$location.search(),
arr = [];
for (var key in search) {
if (search.hasOwnProperty(key)) {
arr.push(key + '=' + search[key]);
}
}
var searchPath = "?" + arr.join('&'),
newTabPath =
"index.html#" + this.urlForLocation(mode, domainObject) +
viewPath;
searchPath;
return newTabPath;
};