diff --git a/InvoiceNinja/WordPress/PostApi.php b/InvoiceNinja/WordPress/PostApi.php index 79593b0..c51ae27 100644 --- a/InvoiceNinja/WordPress/PostApi.php +++ b/InvoiceNinja/WordPress/PostApi.php @@ -403,6 +403,9 @@ public function clientPortalShortcode($atts) $url = rtrim( $url, '/' ); $url = rtrim( $url, 'api/v1' ); $url = rtrim( $url, '/' ); + if (! $url) { + $url = 'https://invoicing.co'; + } $url .= '/client/key_login/' . $contact->contact_key; if ($atts['sso'] == 'true') { $url .= '?client_hash=' . $client->client_hash; @@ -419,7 +422,7 @@ public function clientPortalShortcode($atts) ?>