mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Prevents clicked links from opening new tabs in the historical data browser
This commit is contained in:
parent
a8f19cc45a
commit
8850a8457d
1 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ if stats_type == "top_talkers" then
|
|||
if res ~= nil then
|
||||
for _, record in pairs(res) do
|
||||
record["label"] = shortenString(record["label"])
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..record["addr"]..'" target="_blank">'..record["label"]..'</a>'
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..record["addr"]..'">'..record["label"]..'</a>'
|
||||
end
|
||||
end
|
||||
elseif stats_type =="top_applications" then
|
||||
|
|
@ -152,7 +152,7 @@ elseif stats_type =="top_applications" then
|
|||
end
|
||||
if res ~= nil then
|
||||
for _, record in pairs(res) do
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?protocol='..interface.getnDPIProtoName(tonumber(record["application"]))..'" target="_blank">'..record["label"]..'</a>'
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?protocol='..interface.getnDPIProtoName(tonumber(record["application"]))..'">'..record["label"]..'</a>'
|
||||
end
|
||||
end
|
||||
-- tprint(res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue