Support the ongoing development of Laravel.io →
Configuration Blade Laravel

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

Last updated 3 years ago.
0

fdgfdgfdg

pkundariya liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

scratch scratch Joined 30 Jan 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.