Skip to content

Commit

Permalink
dev and prod behave differently
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed May 9, 2024
1 parent c53fe97 commit 93bc5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cms/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ defmodule CMS.Api do
base_url = Application.get_env(:dotcom, :cms_api)[:base_url]
file_path = "/sites/default/files"

if String.contains?(base_url, uri.host) and not String.contains?(uri.path, file_path) do
if String.contains?(base_url, uri.host) do
[to: uri |> internal_uri() |> parse_redirect_query()]
else
[external: parse_redirect_query(uri)]
Expand Down

0 comments on commit 93bc5b2

Please sign in to comment.