cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Universal Code on Sign-up forms

0 Votes

Error in Universal Code on Sign-up forms

Hi, I'm reporting an error in the Universal Code on the sign-up forms. The following line appears in the Universal Code: <script id="signupScript" src="//static.ctctcdn.com/js/signup-form-widget/current/signup-form-widget.min.js" async defer></script> The src file name is missing "http:" at the start. Without that, my web page is unable to find the script.
1 Comment
CTCT Employee
Status changed to: Open Questions

Hello @cfsv.president,

 

Thank you so much for bringing this up to us. The default code is showing as expected, it's using a scheme relative URL which changes to http or https depending on the site that's accessing it. If you're having trouble finding the script, I recommend adding http: or https: before the two slashes in the code itself depending on what your website uses. The end <script> code would look like either of these:

 

<script id="signupScript" src="http://static.ctctcdn.com/js/signup-form-widget/current/signup-form-widget.min.js" async defer></script>

OR

<script id="signupScript" src="https://static.ctctcdn.com/js/signup-form-widget/current/signup-form-widget.min.js" async defer></script>

 

Doing this should allow the script to load in your browser going forward.

Here is an external article with a little bit more information on the topic: https://www.paulirish.com/2010/the-protocol-relative-url/