From 92454fbca385035afb3183ca31fcf85efecd0c54 Mon Sep 17 00:00:00 2001 From: Gregory Pradun Date: Tue, 16 Feb 2021 20:15:58 +0300 Subject: [PATCH] LAW-3610 --- htdocs/wp-content/themes/lawcarta/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/wp-content/themes/lawcarta/functions.php b/htdocs/wp-content/themes/lawcarta/functions.php index 4947e87..f502265 100644 --- a/htdocs/wp-content/themes/lawcarta/functions.php +++ b/htdocs/wp-content/themes/lawcarta/functions.php @@ -218,6 +218,10 @@ function get_lawcarta_url(){ if(LAWCARTA_ENVIRONMENT_NAME == 'staging' && $wp_sub_domain == 'staging-live'){ $host = str_replace('staging-law', 'staging-live',$host); } + //Temporary fix for new prod env because of it use same domain carta.live for both lawcarta/livecarta + if(LAWCARTA_ENVIRONMENT_NAME == 'prod' && $wp_sub_domain == 'prod-live'){ + $host = str_replace('prod-law', 'prod-live',$host); + } } $port = isset($urlParts['port']) ? $urlParts['port'] : '';