{if $object->status == "SUCCESSFUL"}
- <div class="
- unfurlUrlCard
- {if $object->hasCoverImage()}unfurlUrlCardCoverImage{/if}
- {if $object->hasSquaredImage()}unfurlUrlCardSquaredImage{/if}
- ">
-
- <div class="unfurlUrlImage"{if !$object->getImageUrl()|empty} style="background-image: url('{$object->getImageUrl()}')"{/if}></div>
- <div class="unfurlUrlInformation">
- <div class="unfurlUrlTitle">{$object->title}</div>
- <div class="unfurlUrlDescription">{$object->description}</div>
- <div class="unfurlUrlHost">{$object->getHost()}</div>
+ {if $object->isPlainUrl()}
+ <a {anchorAttributes url=$object->url isUgc=true}>{$object->title}</a>
+ {else}
+ <div class="
+ unfurlUrlCard
+ {if $object->hasCoverImage()}unfurlUrlCardCoverImage{/if}
+ {if $object->hasSquaredImage()}unfurlUrlCardSquaredImage{/if}
+ ">
+
+ <div class="unfurlUrlImage"{if !$object->getImageUrl()|empty} style="background-image: url('{$object->getImageUrl()}')"{/if}></div>
+ <div class="unfurlUrlInformation">
+ <div class="unfurlUrlTitle">{$object->title}</div>
+ <div class="unfurlUrlDescription">{$object->description}</div>
+ <div class="unfurlUrlHost">{$object->getHost()}</div>
+ </div>
+ <a class="unfurlUrlLinkShadow" {anchorAttributes url=$object->url appendClassname=false isUgc=true}></a>
</div>
- <a class="unfurlUrlLinkShadow" {anchorAttributes url=$object->url appendClassname=false isUgc=true}></a>
- </div>
+ {/if}
{else}
<a {anchorAttributes url=$object->url isUgc=true}>{$object->url}</a>
{/if}
\ No newline at end of file