diff --git a/app/View/Components/PortLink.php b/app/View/Components/PortLink.php index aca0908844..0b1e090fc9 100644 --- a/app/View/Components/PortLink.php +++ b/app/View/Components/PortLink.php @@ -41,11 +41,11 @@ class PortLink extends Component * * @return void */ - public function __construct(Port $port, ?array $graphs = null, bool $basic = false) + public function __construct(Port $port, ?array $graphs = null, bool $basic = false, array $vars = []) { $this->basic = $basic; $this->port = $port; - $this->link = Url::portUrl($port); + $this->link = Url::portUrl($port, $vars); $this->label = Rewrite::normalizeIfName($port->getLabel()); $this->description = $port->getDescription(); $this->status = $this->status(); diff --git a/resources/views/device/overview/transceivers.blade.php b/resources/views/device/overview/transceivers.blade.php index 85205d9bd7..1035f42b04 100644 --- a/resources/views/device/overview/transceivers.blade.php +++ b/resources/views/device/overview/transceivers.blade.php @@ -10,7 +10,7 @@ @if($transceiver->port) - + @endif {{ $transceiver->vendor }} {{ $transceiver->type }}