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;