iwanzijderveld's avatar

Laravel/Socialite redirect relative path doesnt automaticaly resolve to a fully qualified URL.

I've added Laravel/socialite to my Lumen project to let users login. In the Laravel docs it says "If the redirect option contains a relative path, it will automatically be resolved to a fully qualified URL.", but when I use a relative path it doenst resolve to a fully qualified URL, does it only work for Laravel? or am I missing something here?

0 likes
1 reply
noriods's avatar

I was also struggling with this. I had it set to token/Facebook but it never got resolved into a fully qualified URL.

Turns out the trick is to add the leading slash. So /token/Facebook works fine for me now.

Hope this helps someone else out there!

Please or to participate in this conversation.