diff --git a/data/htdocs/www/js/errorpages/loaddomain.js b/data/htdocs/www/js/errorpages/loaddomain.js index 067ac9e..225acf5 100644 --- a/data/htdocs/www/js/errorpages/loaddomain.js +++ b/data/htdocs/www/js/errorpages/loaddomain.js @@ -3,5 +3,5 @@ function loadDomain() { let port = location.port; let url = location.hostname; var display = document.getElementById('display-domain'); - display.innerHTML = proto + '//' + url + ':' + port; + display.innerHTML = `${req.protocol}://${req.get('host')}/${req.originalUrl}`; }