From 80b6b5180412ee75622ea11dbf086950ec40f9d7 Mon Sep 17 00:00:00 2001 From: Edward Loveall Date: Sat, 12 Mar 2022 11:40:04 -0500 Subject: [PATCH] Fix redirection pattern Commit 6ea0586423b13317420ecf3cf9aab10760724536 improved redirection instructions, but regressed in one way. The "Redirect to" pattern specified a slash which was accounted for in the main pattern, which resulted in a double slash: https://medium.com/@user/post-123456abcdef would redirect to https://scribe.rip//@user/post-123456abcdef This removes the extra slash --- CHANGELOG | 4 ++++ src/pages/faq/index_page.cr | 2 +- src/version.cr | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2334586..5825d1e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2022-03-12 + +* Fix redirection pattern + 2022-02-13 * Better article ID parsing diff --git a/src/pages/faq/index_page.cr b/src/pages/faq/index_page.cr index f963c29..8a1b41d 100644 --- a/src/pages/faq/index_page.cr +++ b/src/pages/faq/index_page.cr @@ -40,7 +40,7 @@ class Faq::IndexPage < MainLayout strong "Redirect to: " code "https://" code app_domain - code "/$2" + code "$2" end li do strong "Pattern type: " diff --git a/src/version.cr b/src/version.cr index 43bafc7..4387319 100644 --- a/src/version.cr +++ b/src/version.cr @@ -1,3 +1,3 @@ module Scribe - VERSION = "2022-02-13" + VERSION = "2022-03-12" end