From 93bc5b2c6d9d403b99298661d6185198919b5662 Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Thu, 9 May 2024 09:12:26 -0500 Subject: [PATCH] dev and prod behave differently --- lib/cms/api.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cms/api.ex b/lib/cms/api.ex index 55fef29707..0f9a467580 100644 --- a/lib/cms/api.ex +++ b/lib/cms/api.ex @@ -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)]