
function NavbarCtrl($scope, $rootScope, $route, $location, Data) {
    $scope.data = Data;

    $scope.isActive = function(route) {

        var path = $location.path();


        if (path === '/')
            path = '/queries';

        return (('/' + route.toLowerCase()) === path);
    }


}


function NavbarCtrl($scope, $rootScope, $route, $location, Data) {
    $scope.data = Data;

    $scope.data.host = 'http://' + window.location.host;

    $scope.isActive = function(route) {

        var path = $location.path();


        if (path === '/')
            path = '/queries';

        return (('/' + route.toLowerCase()) === path);
    }


}

Change hardcoded localhost:9200 to window.location.host
Change hardcoded localhost:9200 to window.location.host

Localhost had been hardcoded for testing, but was not removed when pushed.
This fix removes localhost and defaults to window.location.host, which
is basically whatever has been entered in the URL.
