Streaming live at 10am (PST)

Create Link without HTTP


#1

Is it possible to create a link block that doesn't automatically insert "http://" before the URL? I'm trying to create a link using javascript for a shopping cart, where the link should be

<a href="javascript:sraddtocheckout(75452);"></a>

but Webflow keeps adding "http://" to the URL by default. How can I prevent this?


#2

Great question, @jordanshotwell

Try using the Embed component and just add your own code.


#3

Nailed it! Thanks @PixelGeek. Is there a reason that Webflow does this?


#4

To help those that don't know how to code but still give flexibility to those that do. :wink:


#5

99% of the time users type in a link like "www.google.com" but this actually is not a valid link and will not go to the correct page unless it has an "http://" in the href. Hope that helps!


#6

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.