Added improved affiliate URL logic for entities.

This commit is contained in:
2026-01-22 05:58:05 +01:00
parent e28904b791
commit 2380342328
5 changed files with 92 additions and 52 deletions

View File

@@ -168,6 +168,9 @@ const entityUrl = (() => {
return null;
}
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;
@@ -183,6 +186,7 @@ const entityUrl = (() => {
}
return entity.url;
*/
})();
</script>