in src/router/bundle/bundleGenerator.ts [53:79]
static createLinkWithQuery(
linkType: LinkType,
host: string,
isHistory: boolean,
resourceType?: string,
id?: string,
query?: any,
) {
let pathname = '';
if (resourceType) {
pathname += `/${resourceType}`;
}
if (id) {
pathname += `/${id}`;
}
if (isHistory) {
pathname += '/_history';
}
return {
relation: linkType,
url: URL.format({
host,
pathname,
query,
}),
};
}