We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

I'm trying to add an external URL to a button, but when I click it, it directs to an internal link ending with undefined

How Do I?

adambadam's avatar
adambadam
2 posts
4 years ago
adambadam's avatar adambadam

I have set up a channel with an url entry, all looks fine when I check the code, the buttons’ link is there, but when I click the button instead of going to the page what is set from the url entry, it directs the browser to mydomain.com/undefined I’ve checked the channel settings, tried to switch on and off the “render urls and email addresses as links” but nothing happened with either on or off.

When I add the same url entry to a normal <a> link, it works and directs the browser to the correct address.

What am I missing here?

       
adambadam's avatar
adambadam
2 posts
4 years ago
adambadam's avatar adambadam

solved, i was stupid, i so rarely use <button> that i forgot theres no href attribute *facepalm

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.