mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Merge pull request #2536 from mabashian/rest-trailing-slash
Added trailing / to the end of our urls
This commit is contained in:
@@ -62,7 +62,8 @@ export default
|
|||||||
headers: {},
|
headers: {},
|
||||||
|
|
||||||
setUrl: function (url) {
|
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 () {
|
checkExpired: function () {
|
||||||
return ($rootScope.sessionTimer) ? $rootScope.sessionTimer.isExpired() : false;
|
return ($rootScope.sessionTimer) ? $rootScope.sessionTimer.isExpired() : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user