Level 122
Because if you don't specify the protocol then it will assume the link is local
prefix it with https:
<a href="https://{{ url($facebook)}}">Link</a>
Of course it might not be https....
I have a link, which value is coming from database. Like this:
<a href="{{ url($facebook)}}">Link</a>
But it is creating the URL like this
http://localhost:8000/amazon.com/xyz
I don't want localhost:8000. What is the approach?
Just it will be: amazon.com/xyz
Don't use the url helper for external urls. All you need is //: <href="//{{ $facebook }}".
Please or to participate in this conversation.