Skip to content

Commit

Permalink
Update SocialiteManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Dec 27, 2022
1 parent 2c0b753 commit 295a366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocialiteManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected function formatRedirectUrl(array $config)
{
$redirect = value($config['redirect']);

return Str::startsWith($redirect, '/')
return Str::startsWith($redirect ?? '', '/')
? $this->container->make('url')->to($redirect)
: $redirect;
}
Expand Down

0 comments on commit 295a366

Please sign in to comment.