Added improved affiliate URL logic for entities.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user