1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

allow basepath to contain query parameter when adding search tags

This commit is contained in:
John Mitchell 2016-05-16 14:20:19 -04:00
parent 18e3552c86
commit 4c1b25ea58

View File

@ -162,7 +162,10 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
tags = relatedTags.concat(nonRelatedTags);
}
return basePath + "?" +
var returnedUrl = basePath;
returnedUrl += (basePath.indexOf("?") > - 1) ? "&" : "?";
return returnedUrl +
(tags || []).map(function (t) {
return t.url;
}).join("&") + "&page_size=" + pageSize;