1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Added trailing / to the end of our base url paths

This commit is contained in:
Michael Abashian 2016-06-21 10:34:12 -04:00
parent c20e9baa55
commit 58e760355f

View File

@ -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;