logo image path not working for pages with parameter

images of header are getting parameter added with their original path while calling at the pages (having parameters )

My code is :

<a class="navbar-brand" href="{{url('/')}}"><img src="{{ $general->website_logo?? 'Not Found' }}" 
class="img-fluid" alt="logo"></a>

It works nicely for normal pages (without params ) but , when called from pages with params , the images get disappeared :

enter image description here

1 answer

  • answered 2021-02-27 15:58 Ahmed Ali

    Because you are not using laravel assets, use {{asset('')}}, so it can work in everypage, in the method that u use it counts the param's as files, when you use the {{asset('')}} it gonna work perfectly on all pages.