From ead3abb2c259de64fdaf592e806127bf546c23b9 Mon Sep 17 00:00:00 2001 From: David Bell Date: Sun, 5 Mar 2017 19:42:39 +0000 Subject: [PATCH] webui: Create correct link for BGP peers #5958 --- html/pages/device/routing/bgp.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html/pages/device/routing/bgp.inc.php b/html/pages/device/routing/bgp.inc.php index 5b680d2d37..99ee0e9784 100644 --- a/html/pages/device/routing/bgp.inc.php +++ b/html/pages/device/routing/bgp.inc.php @@ -208,7 +208,12 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? $extra_sql $graph_array_zoom['height'] = '150'; $graph_array_zoom['width'] = '500'; $overlib_link = "device/device=".$peer['device_id']."/tab=routing/proto=bgp/"; - $peeraddresslink = "".overlib_link(null, $peer['bgpPeerIdentifier'], generate_graph_tag($graph_array_zoom), null).""; + + $link_array = $graph_array; + $link_array['page'] = 'graphs'; + unset($link_array['height'], $link_array['width'], $link_array['legend']); + $link = generate_url($link_array); + $peeraddresslink = "".overlib_link($link, $peer['bgpPeerIdentifier'], generate_graph_tag($graph_array_zoom), null).""; echo ' ';