0

I'm trying to set data variable(data-url) for a button, but when I check it out in the inspector, the data-url of said button is "0".

Can anyone help me figure out what I've done wrong? This is the code I'm referring to

    <c:url var="ajax-url" value="/product/internal" />
    <button data-url="${ajax-url}">
        blabla
    </button>

Thanks in advance

HybrisHelp
  • 5,518
  • 2
  • 27
  • 65
SHRX
  • 559
  • 1
  • 6
  • 17

1 Answers1

0

Try this

 <button data-url="<c:url value = "/product/internal"/>">
        blabla
 </button>
HybrisHelp
  • 5,518
  • 2
  • 27
  • 65