Ad

Found A Issue Related To Laravel Routing

- 1 answer

I have issue related to Laravel routing. For example if my site is xyz.com and i have link on my home page <a target="_blank" rel="nofollow noreferrer" href="https://www.instagram.com/myprofile/">Instagram</a>.

Then it does not take me to the Instagram link instead of opening this link it opens the wwww.servername/laravel/public/https://www.instagram.com/myprofile/ instead. How can I open a new link?

Ad

Answer

Your link is being generated using blade functionality. However based on the discussion in the comments above, the link does not sit within a blade file, and thus the blade functionality, specifically in this case url, is not being called.

Please ensure the following:

  • Blade functions sit within a .blade.php file
  • url is called within the blade markers {{ and }}
Ad
source: stackoverflow.com
Ad