mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #2536 from mabashian/rest-trailing-slash
Added trailing / to the end of our urls
This commit is contained in:
commit
e72f371a1e
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user