Skip to content

Commit

Permalink
feat(SiteWeb.Router): add /charlie/* redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 25, 2023
1 parent 742a702 commit 8d113ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/site/lib/site_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 8d113ad

Please sign in to comment.