Skip to content

Commit

Permalink
Merge pull request #74 from Cratis:fix/url-separator
Browse files Browse the repository at this point in the history
Adding & when microservice argument is present
  • Loading branch information
einari authored Aug 16, 2024
2 parents 6177098 + b859c0c commit 0882148
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
if (queryArguments) {
if (url.indexOf('?') < 0) {
url = `${url}?`;
} else {
url = `${url}&`;
}
const query = Object.keys(queryArguments).map(key => `${key}=${queryArguments[key]}`).join('&');
url = `${url}${query}`;
Expand Down

0 comments on commit 0882148

Please sign in to comment.