looking for solve my issue. i do a edit on a laravel site, but i cant call back the site url (entity.toUrl) for add to the "img src" with a google favicon.
i need to change the "imageIconUrl" with the "toUrl" actual situation:
<a target="_blank" class="entity-url" :href="entity.toUrl">
<img :src="entity.imageIconUrl" :alt="entity.title">
<span>@{{entity.toUrl}}</span>
</a>
i try to edit from:
<img :src="entity.imageIconUrl" :alt="entity.title">
to (removed : before src and change to entity.toUrl):
<img src="http://www.google.com/s2/favicons?domain=@{{entity.toUrl}}" :alt="entity.title">
or:
<img src="http://www.google.com/s2/favicons?domain={{$toUrl}}"
but now if i check on site the source of the favicon image i get back this url:
https://www.google.com/s2/favicons?domain={{entity.toUrl}}
and not
https://www.google.com/s2/favicons?domain=example.com
when i call it in the <span>@{{entity.toUrl}}</span>
work but not in the img src
any suggestion for help me? many thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community