From a6f3117595299b8a3d69009fb78848dda4d79960 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 18 Oct 2013 16:52:21 +0200 Subject: [PATCH] MT#3977 Set proper config.url parameter. --- lib/NGCP/Panel/Controller/Device.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { },