From 9fcf37f416d07bab50799b5f8b79d6cf8a3b1b44 Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 14 Oct 2021 06:46:39 -0400 Subject: [PATCH] Use app_domain in Redirector example In the current redirector example, "scribe.rip" is hardcoded as the destination. This patch simply changes that to use the app_domain environment variable, so people wanting to use a community instance aren't mistakenly redirected to the main scribe.rip instance. --- src/pages/home/index_page.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/home/index_page.cr b/src/pages/home/index_page.cr index 13e30fa..c930a6c 100644 --- a/src/pages/home/index_page.cr +++ b/src/pages/home/index_page.cr @@ -57,7 +57,9 @@ class Home::IndexPage < MainLayout end li do strong "Redirect to: " - code "https://scribe.rip/$1" + code "https://" + code app_domain + code "/$1" end li do strong "Pattern type: "