From c2e41112c399cb6c825a7ada1ff3c2f55c9a7c53 Mon Sep 17 00:00:00 2001 From: "T. Brandon Ashley" Date: Mon, 22 Jul 2019 09:19:21 -0400 Subject: [PATCH] fix(*): add . to www redirect plug (#101) --- lib/ellie_web/plugs/redirect.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ellie_web/plugs/redirect.ex b/lib/ellie_web/plugs/redirect.ex index c15a05e8..4e651b73 100644 --- a/lib/ellie_web/plugs/redirect.ex +++ b/lib/ellie_web/plugs/redirect.ex @@ -7,7 +7,7 @@ defmodule EllieWeb.Plugs.Redirect do def call(conn, _) do case conn.host do - "www" <> bare_domain -> + "www." <> bare_domain -> conn |> put_status(:moved_permanently) |> Phoenix.Controller.redirect(