Error in Universal Code on Sign-up forms

0 Votes
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.
2 Comments
Beatriz_R
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/

Frankie_P
Moderator
Status changed to: Closed - No Action
 
Updates
Introducing our new Feedback area

Our Feedback board is changing! From updated statuses to clearer processes, we're working to improve the conversation between you and our Product teams

Visit the Blog
Announcements
What's New?

See the latest Constant Contact product release notes and updates.

Learn More