mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
- Open in New Tab will preserve TC settings
This commit is contained in:
parent
7d754ea143
commit
61e583dbb2
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user