mercredi 30 juin 2021

I am getting wrong assets url using Laravel helper "secure_asset"

I have a website on domain mydomain.space

I include in my blade file some js file in such way:

<script  type="text/javascript" src="{!! secure_asset('js/app.js') !!}"></script>

But then, on production, I see in browser logs, that frontend try to load file by this URL:

http://mydomainspace/js/app.js

Yeah, for some reason it removes dot and as result - it is wrong URL... But when I display APP_URL variable - it shows "mydomain.space" (with dot).

Why I lose dot in URL when use secure_asset helper?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire