add pathname to endpoint url builder methods

This commit is contained in:
pgayvallet 2020-04-07 23:01:56 +02:00
parent ab763a3d0a
commit 7604932b80
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ export function urlFromQueryParams(
): Partial<EndpointAppLocation> {
const search = querystring.stringify(queryParams);
return {
pathname: '/alerts',
search,
};
}

View file

@ -12,6 +12,7 @@ export function urlFromQueryParams(
): Partial<EndpointAppLocation> {
const search = querystring.stringify(queryParams);
return {
pathname: '/hosts',
search,
};
}