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.
1 parent 1e44394 commit 6d85de5Copy full SHA for 6d85de5
src/Http/Redirects.php
@@ -15,17 +15,19 @@ abstract class Redirects
15
'tumblr' => 't.umblr.com/redirect',
16
];
17
18
- /**
19
- * Resolve a facebook redirection url.
+ /**
+ * Resolve the url redirection.
20
*
21
* @param Url $url
22
23
* @return Url
24
*/
25
- public static function facebook(Url $url)
+ public static function resolve(Url $url)
26
{
27
- if (($value = $url->getQueryParameter('next'))) {
28
- return Url::create($value);
+ foreach (self::$patterns as $method => $pattern) {
+ if ($url->match($pattern)) {
29
+ return self::$method($url);
30
+ }
31
}
32
33
return $url;
0 commit comments