diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 5ae66ba642..1d5e6376f4 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -905,7 +905,7 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() { my $vars = { config => { - url => $c->uri_for, + url => 'http://' . $c->req->uri->host . ':' . ($c->config->{web}->{autoprov_plain_port} // '1444') . '/device/autoprov/config/' . $id, }, firmware => { },