mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Fix error when redirecting to a non-http URL
This commit is contained in:
@@ -66,7 +66,7 @@ class ListRedirectRulesTest extends ApiTestCase
|
||||
'conditions' => [self::LANGUAGE_EN_CONDITION],
|
||||
],
|
||||
[
|
||||
'longUrl' => 'https://blog.alejandrocelaya.com/android',
|
||||
'longUrl' => 'android://foo/bar',
|
||||
'priority' => 4,
|
||||
'conditions' => [
|
||||
[
|
||||
@@ -77,7 +77,7 @@ class ListRedirectRulesTest extends ApiTestCase
|
||||
],
|
||||
],
|
||||
[
|
||||
'longUrl' => 'https://blog.alejandrocelaya.com/ios',
|
||||
'longUrl' => 'fb://profile/33138223345',
|
||||
'priority' => 5,
|
||||
'conditions' => [
|
||||
[
|
||||
|
||||
@@ -49,7 +49,7 @@ class ShortUrlRedirectRulesFixture extends AbstractFixture implements DependentF
|
||||
$androidRule = new ShortUrlRedirectRule(
|
||||
shortUrl: $defShortUrl,
|
||||
priority: 4,
|
||||
longUrl: 'https://blog.alejandrocelaya.com/android',
|
||||
longUrl: 'android://foo/bar',
|
||||
conditions: new ArrayCollection([RedirectCondition::forDevice(DeviceType::ANDROID)]),
|
||||
);
|
||||
$manager->persist($androidRule);
|
||||
@@ -65,7 +65,7 @@ class ShortUrlRedirectRulesFixture extends AbstractFixture implements DependentF
|
||||
$iosRule = new ShortUrlRedirectRule(
|
||||
shortUrl: $defShortUrl,
|
||||
priority: 5,
|
||||
longUrl: 'https://blog.alejandrocelaya.com/ios',
|
||||
longUrl: 'fb://profile/33138223345',
|
||||
conditions: new ArrayCollection([RedirectCondition::forDevice(DeviceType::IOS)]),
|
||||
);
|
||||
$manager->persist($iosRule);
|
||||
|
||||
Reference in New Issue
Block a user