Fix redirection pattern

Commit 6ea0586423 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
This commit is contained in:
Edward Loveall 2022-03-12 11:40:04 -05:00
parent fb51270f87
commit 80b6b51804
No known key found for this signature in database
GPG key ID: A7606DFEC2BA731F
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2022-03-12
* Fix redirection pattern
2022-02-13 2022-02-13
* Better article ID parsing * Better article ID parsing

View file

@ -40,7 +40,7 @@ class Faq::IndexPage < MainLayout
strong "Redirect to: " strong "Redirect to: "
code "https://" code "https://"
code app_domain code app_domain
code "/$2" code "$2"
end end
li do li do
strong "Pattern type: " strong "Pattern type: "

View file

@ -1,3 +1,3 @@
module Scribe module Scribe
VERSION = "2022-02-13" VERSION = "2022-03-12"
end end