Javascript Adding Variable to Href

Insert a variable into a template literal href tag

You have the wrong number of quotes in the <a> element. You're creating something that looks like

<a href="venue/"cafeId">

The extra quote is causing everything after it to parse incorrectly.

Change that whole line to:

<h5 class="card-title venue-name" id="${cafeName}"><a href="venue/${cafeId}"></a></h5>

Add text from a variable to href link inside actor tag

Try this: