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 5915ec4 commit 28e14bfCopy full SHA for 28e14bf
src/Http/Redirects.php
@@ -12,6 +12,7 @@ abstract class Redirects
12
'googleTranslator' => 'translate.google.com/translate',
13
'hashBang' => '*#!*',
14
'spotify' => 'play.spotify.com/*',
15
+ 'tumblr' => 't.umblr.com/redirect',
16
];
17
18
/**
@@ -91,4 +92,20 @@ public static function spotify(Url $url)
91
92
{
93
return $url->withHost('open.spotify.com');
94
}
95
+
96
+ /**
97
+ * Redirect the tumblr url
98
+ *
99
+ * @param Url $url
100
101
+ * @return Url
102
+ */
103
+ public static function tumblr(Url $url)
104
+ {
105
+ if (($value = $url->getQueryParameter('z'))) {
106
+ return Url::create($value);
107
+ }
108
109
+ return $url;
110
111
0 commit comments