From a3e284a377ba4bc101b61160f0af382566216ef1 Mon Sep 17 00:00:00 2001 From: Gregory Pradun Date: Wed, 24 Mar 2021 14:09:07 +0300 Subject: [PATCH] new prod app domain logic update --- 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 f502265..ec20d90 100644 --- a/htdocs/wp-content/themes/lawcarta/functions.php +++ b/htdocs/wp-content/themes/lawcarta/functions.php @@ -222,6 +222,10 @@ function get_lawcarta_url(){ if(LAWCARTA_ENVIRONMENT_NAME == 'prod' && $wp_sub_domain == 'prod-live'){ $host = str_replace('prod-law', 'prod-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 == ''){ + $host = str_replace('app-law', 'app',$host); + } } $port = isset($urlParts['port']) ? $urlParts['port'] : '';