diff --git a/api.php b/api.php index 7e9b957..9de71d7 100644 --- a/api.php +++ b/api.php @@ -19,7 +19,7 @@ // Cognito API access if ( !class_exists('CognitoAPI') ) { class CognitoAPI { - public static $formsBase = 'https://cognitoforms.com/'; + public static $formsBase = 'https://www.cognitoforms.com'; // Convert MS GUID to Short GUID private static function guid_to_short_guid($guid) { diff --git a/templates/main.php b/templates/main.php index 05b9907..ed638c6 100755 --- a/templates/main.php +++ b/templates/main.php @@ -19,11 +19,11 @@ $url = CognitoAPI::$formsBase; if ($_GET['page'] == 'CognitoCreateForm') { - $url = $url . 'forms/new'; + $url = $url . '/forms/new'; } elseif ($_GET['page'] == "CognitoTemplates") { - $url = $url . 'templates'; + $url = $url . '/templates'; } else { - $url = $url . 'forms'; + $url = $url . '/forms'; } ?>