mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
add filter label and fix for http_prefix for safari browser (#5080)
This commit is contained in:
parent
76e8728780
commit
11629cc2f8
2 changed files with 8 additions and 2 deletions
|
|
@ -45,12 +45,15 @@ export default {
|
|||
}
|
||||
},
|
||||
onClick: function(e) {
|
||||
|
||||
const element = this.getElementAtEvent(e);
|
||||
const httpPrefix = http_prefix || location.origin;
|
||||
|
||||
// if you click on at least 1 element ...
|
||||
if (element.length > 0) {
|
||||
const dataset = this.config.data.datasets[element[0]._datasetIndex];
|
||||
const data = dataset.data[element[0]._index];
|
||||
window.location.href = http_prefix + dataset.baseUrl + data.link; // Jump to this host
|
||||
window.location.href = new URL(dataset.baseUrl + data.link, httpPrefix).toString(); // Jump to this host
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue