diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index 52055a1..4c5593a 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -15,7 +15,7 @@ class BillingSrv $ngrok_prefix = $this->container->getParameter('dev_ngrok_prefix'); - $this->url_prefix = $env == ("dev" && !empty($ngrok_prefix)) + $this->url_prefix = ($env == "dev" && !empty($ngrok_prefix)) ? $ngrok_prefix : $container->get('router')->getContext()->getBaseUrl(); }