Fixes 301 redirects on topology websocket connection

Fixes 301 redirects on creation of the topology websocket
connection by adding a trailing slash to the websocket URI.
This commit is contained in:
Ben Thomasson
2018-04-30 10:59:54 -04:00
parent 7781667977
commit fd38c62e7e

View File

@@ -52,7 +52,7 @@ var NetworkUIController = function($scope,
$scope.initial_messages = [];
if (!$scope.disconnected) {
$scope.control_socket = new ReconnectingWebSocket(protocol + "://" + window.location.host + "/network_ui/topology?inventory_id=" + $scope.inventory_id,
$scope.control_socket = new ReconnectingWebSocket(protocol + "://" + window.location.host + "/network_ui/topology/?inventory_id=" + $scope.inventory_id,
null,
{debug: false, reconnectInterval: 300});
if ($scope.tests_enabled) {