External link not working in laravel blade

You can use http:// protocol to anchor tags which can be a problem in blade files for external links. That is why the external link may not work in your laravel blade view.

Answers 1
  • Add external link with http:// in laravel blade

    <a href="http://{{ $anchorLink }}" target="_blank"> {{ $anchorLink }} </a> 
    
    0

    You have to pass http:// with your anchor link if your URL link of the anchor tag is not in a valid formats like with http://google.com or https://google.com

  • Back to code snippet queries related laravel