We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01c284d + bf4b908 commit f4ce26eCopy full SHA for f4ce26e
src/Http/Redirects.php
@@ -13,6 +13,7 @@ abstract class Redirects
13
'hashBang' => '*#!*',
14
'spotify' => 'play.spotify.com/*',
15
'tumblr' => 't.umblr.com/redirect',
16
+ 'facebook' => 'www.facebook.com/login/*',
17
];
18
19
/**
@@ -33,6 +34,23 @@ public static function resolve(Url $url)
33
34
return $url;
35
}
36
37
+ /**
38
+ * Resolve a facebook redirection url.
39
+ *
40
+ * @param Url $url
41
42
+ * @return Url
43
+ */
44
+ public static function facebook(Url $url)
45
+ {
46
+ if (($value = $url->getQueryParameter('next'))) {
47
+ return Url::create($value);
48
+ }
49
+
50
+ return $url;
51
52
53
54
55
* Resolve a google redirection url.
56
*
0 commit comments