From 044c25311f31b563fce36fa65a2d69eec9a0ab7c Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 8 Jan 2018 11:00:11 -0800 Subject: [PATCH] add note on why we only use href and not the hostname --- webadmin/src/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webadmin/src/js/main.js b/webadmin/src/js/main.js index 5d66ba357..2bad41592 100644 --- a/webadmin/src/js/main.js +++ b/webadmin/src/js/main.js @@ -194,6 +194,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route', // support local development with localhost check if (window.location.hostname !== status.adminFqdn && window.location.hostname !== 'localhost') { + // user is accessing by IP or by the old admin location (pre-migration) window.location.href = '/setupdns.html'; return; }