Skip to content

Commit

Permalink
fix(*): add . to www redirect plug (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbash authored Jul 22, 2019
1 parent 22c63d0 commit c2e4111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ellie_web/plugs/redirect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c2e4111

Please sign in to comment.