Skip to content

Commit

Permalink
Fixes missing http prefix (#8676 #8844)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Nov 29, 2024
1 parent 178a4d3 commit 9961d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lua/host_details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ local function printPort(port, proto, is_server_port)
print('<li><A HREF="' .. historical_base_url .. '"><span class="badge bg-secondary">' .. port .. " (" ..
proto .. ")" .. "</span></A></li>\n")
else
print('<li><A HREF="/lua/flows_stats.lua?port=' .. port .. '"><span class="badge bg-secondary">' .. port ..
print('<li><A HREF="' .. ntop.getHttpPrefix() .. '/lua/flows_stats.lua?port=' .. port .. '"><span class="badge bg-secondary">' .. port ..
" (" .. proto .. ")" .. "</span></A></li>\n")
end
else
print(
'<li><A HREF="/lua/flows_stats.lua?port=' .. port .. '"><span class="badge bg-secondary">' .. port .. " (" ..
'<li><A HREF="' .. ntop.getHttpPrefix() .. '/lua/flows_stats.lua?port=' .. port .. '"><span class="badge bg-secondary">' .. port .. " (" ..
proto .. ")" .. "</span></A></li>\n")
end
end
Expand Down

0 comments on commit 9961d89

Please sign in to comment.