Skip to content

Commit 0b3c942

Browse files
committed
update canonical host rules
1 parent 5176327 commit 0b3c942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/algora_web/endpoint.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ defmodule AlgoraWeb.Endpoint do
7878

7979
defp canonical_host(%{host: host} = conn, _opts) do
8080
case String.split(host, ".") do
81-
[subdomain, "algora", "io"] when subdomain not in ["app", "console", "www", "sitemaps"] ->
81+
[subdomain, "algora", "io"]
82+
when subdomain not in ["app", "console", "www", "sitemaps", "sitemap", "m", "api", "home"] ->
8283
Algora.Activities.alert("👀 Someone is viewing https://#{subdomain}.algora.io", :critical)
8384
redirect_to_canonical_host(conn, Path.join(["/#{subdomain}/candidates"]))
8485

0 commit comments

Comments
 (0)