From 97e0cda35269935e203cfc4c095f9b990a12a0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Mon, 19 Nov 2018 09:03:13 +0100 Subject: [PATCH] getUrl() --- public/assets/js/app.js | 4 ++++ public/index.html | 2 +- public/templates/conf/nginx.conf.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 1a5692e..d444c12 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -201,6 +201,10 @@ } }; + $scope.getUrl = function() { + return $location.absUrl().replace(/#.*$/, ''); + }; + $scope.setDataFromHash = function() { var hashData = $location.search(); diff --git a/public/index.html b/public/index.html index ee982f0..08aa2c6 100644 --- a/public/index.html +++ b/public/index.html @@ -718,7 +718,7 @@ + ng-value="getUrl()">
diff --git a/public/templates/conf/nginx.conf.html b/public/templates/conf/nginx.conf.html index 2dc56a5..156c565 100644 --- a/public/templates/conf/nginx.conf.html +++ b/public/templates/conf/nginx.conf.html @@ -1,7 +1,7 @@ # Generated by nginxconfig.io -# {{ location.absUrl() }} +# {{ getUrl() }} user {{ data.user }}; pid {{ data.pid}};