Skip to content

Commit 476e2eb

Browse files
committed
exclude www from wildcard subdomains
1 parent 6220195 commit 476e2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/endpoint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ defmodule AlgoraWeb.Endpoint do
7373

7474
defp canonical_host(%{host: host} = conn, _opts) do
7575
case String.split(host, ".") do
76-
[subdomain, "algora", "io"] when subdomain not in ["app", "console"] ->
76+
[subdomain, "algora", "io"] when subdomain not in ["app", "console", "www", "sitemaps"] ->
7777
Algora.Activities.alert("👀 Someone is viewing https://#{subdomain}.algora.io", :critical)
7878
redirect_to_canonical_host(conn, Path.join(["/#{subdomain}/candidates"]))
7979

0 commit comments

Comments
 (0)