add note on why we only use href and not the hostname

This commit is contained in:
Girish Ramakrishnan
2018-01-08 11:00:11 -08:00
parent d56575facf
commit 044c25311f

View File

@@ -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;
}