Showing networks first in child entity list.
This commit is contained in:
@@ -169,24 +169,6 @@ const entityUrl = (() => {
|
||||
}
|
||||
|
||||
return entity.affiliateUrl || entity.url;
|
||||
|
||||
/*
|
||||
// affiliate might be inherited, only use full URL when directly associated
|
||||
if (entity.affiliate?.url && entity.affiliate.entityId === entity.id) {
|
||||
return entity.affiliate.url;
|
||||
}
|
||||
|
||||
if (entity.affiliate?.parameters) {
|
||||
const newParams = new URLSearchParams({
|
||||
...Object.fromEntries(new URL(entity.url).searchParams),
|
||||
...Object.fromEntries(new URLSearchParams(entity.affiliate.parameters)),
|
||||
});
|
||||
|
||||
return `${entity.url}?${newParams}`;
|
||||
}
|
||||
|
||||
return entity.url;
|
||||
*/
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user