From 590fc3fc92037fc9e5a6276d9fdd37c3034483d0 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 25 Feb 2020 18:01:06 +0100 Subject: [PATCH 1/2] Added tests covering redirect simplified config parsing --- module/Core/test/Config/SimplifiedConfigParserTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/Core/test/Config/SimplifiedConfigParserTest.php b/module/Core/test/Config/SimplifiedConfigParserTest.php index 7a304ad5..02f96423 100644 --- a/module/Core/test/Config/SimplifiedConfigParserTest.php +++ b/module/Core/test/Config/SimplifiedConfigParserTest.php @@ -41,6 +41,8 @@ class SimplifiedConfigParserTest extends TestCase 'validate_url' => true, 'delete_short_url_threshold' => 50, 'invalid_short_url_redirect_to' => 'foobar.com', + 'regular_404_redirect_to' => 'bar.com', + 'base_url_redirect_to' => 'foo.com', 'redis_servers' => [ 'tcp://1.1.1.1:1111', 'tcp://1.2.2.2:2222', @@ -114,6 +116,8 @@ class SimplifiedConfigParserTest extends TestCase 'not_found_redirects' => [ 'invalid_short_url' => 'foobar.com', + 'regular_404' => 'bar.com', + 'base_url' => 'foo.com', ], 'mezzio-swoole' => [ From 8a0e902bdd337158b9215fb20ecbcf8bd7ad44ac Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 25 Feb 2020 18:02:38 +0100 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30c989a2..a75e39ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this #### Fixed -* *Nothing* +* [#665](https://github.com/shlinkio/shlink/issues/665) Fixed `base_url_redirect_to` simplified config option not being properly parsed. ## 2.0.5 - 2020-02-09