uri encoded slug lookups

This commit is contained in:
byte[] 2019-12-01 21:38:19 -05:00
parent 3046da7c67
commit c53c7d283f

View file

@ -35,7 +35,7 @@ defmodule PhilomenaWeb.TagController do
tag = tag =
Tag Tag
|> where(slug: ^slug) |> where(slug: ^URI.encode(slug))
|> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user]) |> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user])
|> Repo.one() |> Repo.one()