facebook error "href should represent a valid URL" and twitter not showing url at all only error only when server live
Closed this issue · 4 comments
Thats odd!
I have this code in my blade file:
<col-xs-3><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{url()->current()}}" class="social-button " id=""><span class="fa fa-facebook-official fa-3x"></span></a></col-xs-3> <div class="col-xs-3"><a target="_blank" href="https://twitter.com/intent/tweet?text=Nea Karvali Kavalas&url={{url()->current()}}" class="social-button " id=""><span class="fa fa-twitter fa-3x"></span></a> </div> <div class="col-xs-3"><a target="_blank" href="https://plus.google.com/share?url={{url()->current()}}" class="social-button " id=""><span class="fa fa-google-plus fa-3x"></span></a></div> <div class="col-xs-3"><a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url={{url()->current()}}" class="social-button " id=""><span class="fa fa-linkedin fa-3x"></span></a></div>
localhost works fine as expected but when i upload the blade file into live server it gives me facebook error "href should represent a valid URL" and sharing in twitter it navigates to share view but not including any url at all.
Google + and linkeed works as expected
Looks like the request is being made through SSL termination. Your protocol schema is //
Seems like you are using it in a wrong way
{{url()->current()}}
generates all the boilerplate for you, you are adding it an existing url and are specifying any provider(s)
Closing this due to inactivity
what is the right way?