From fd38c62e7e4288b640723861f1335f5f68085590 Mon Sep 17 00:00:00 2001 From: Ben Thomasson Date: Mon, 30 Apr 2018 10:59:54 -0400 Subject: [PATCH] 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. --- awx/ui/client/src/network-ui/network.ui.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/network-ui/network.ui.controller.js b/awx/ui/client/src/network-ui/network.ui.controller.js index a0875b0d64..a261b326bb 100644 --- a/awx/ui/client/src/network-ui/network.ui.controller.js +++ b/awx/ui/client/src/network-ui/network.ui.controller.js @@ -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) {