diff --git a/lib/philomena_web/controllers/tag_controller.ex b/lib/philomena_web/controllers/tag_controller.ex index 6ef99cc0..dca8d326 100644 --- a/lib/philomena_web/controllers/tag_controller.ex +++ b/lib/philomena_web/controllers/tag_controller.ex @@ -35,7 +35,7 @@ defmodule PhilomenaWeb.TagController do tag = Tag - |> where(slug: ^slug) + |> where(slug: ^URI.encode(slug)) |> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user]) |> Repo.one()