From 8d113adeb4f72e1454150c4863a8d08e714dd17f Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Wed, 25 Oct 2023 10:26:33 -0400 Subject: [PATCH] feat(SiteWeb.Router): add /charlie/* redirect --- apps/site/lib/site_web/router.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/site/lib/site_web/router.ex b/apps/site/lib/site_web/router.ex index 5fbcedf970..9d01ef02f7 100644 --- a/apps/site/lib/site_web/router.ex +++ b/apps/site/lib/site_web/router.ex @@ -62,6 +62,11 @@ defmodule SiteWeb.Router do get("/*path", WwwRedirector, []) end + # redirect 'mbta.com/charlie/*' to 'charlie.mbta.com/*' + scope "/charlie", SiteWeb do + get("/*path", WwwRedirector, host: "https://charlie.mbta.com") + end + scope "/", SiteWeb do pipe_through([:secure, :browser])