Commit 7e59608b by rajshah

compare fixes

parent 4bef2bb3
...@@ -69,7 +69,7 @@ if (isset($compare) && is_array($compare) && !empty($compare)): ...@@ -69,7 +69,7 @@ if (isset($compare) && is_array($compare) && !empty($compare)):
} }
websiteUrl = websiteUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase(); websiteUrl = websiteUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase();
competitorUrl = competitorUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase(); competitorUrl = competitorUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase();
var actionUrl = 'https://makuracreations.com/free-seo-audit/compare/' + websiteUrl + '/vs/' + competitorUrl; var actionUrl = '<?php echo esc_url($compare_url); ?>' + websiteUrl + '/vs/' + competitorUrl;
document.querySelector('form.turboform').action = actionUrl; document.querySelector('form.turboform').action = actionUrl;
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment