From 58e760355f27344707dc5c38370652099349203a Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Tue, 21 Jun 2016 10:34:12 -0400 Subject: [PATCH] Added trailing / to the end of our base url paths --- awx/ui/client/src/rest/restServices.factory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/rest/restServices.factory.js b/awx/ui/client/src/rest/restServices.factory.js index 8ecc75eb74..7370778f1b 100644 --- a/awx/ui/client/src/rest/restServices.factory.js +++ b/awx/ui/client/src/rest/restServices.factory.js @@ -62,7 +62,8 @@ export default headers: {}, setUrl: function (url) { - this.url = url; + // Ensure that a trailing slash is present at the end of the url (before query params, etc) + this.url = url.replace(/\/?(\?|#|$)/, '/$1'); }, checkExpired: function () { return ($rootScope.sessionTimer) ? $rootScope.sessionTimer.isExpired() : false;