Tinderbox Forum

Template Question

I have tried this code both in my HTML Template and under Text:

In each case the HTML code for the item appears correct:

and the Preview or the actual rendered HTML in my browser looks correct:

image

But in fact the links do not work - I get some version of what the link should be prefaced by a reference to my local file structure. Why might this be:

file:///Users/richardkaplan/Downloads/URL_Tests/%E2%80%9Chttps://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?

file:///Users/richardkaplan/Downloads/%E2%80%9Chttps://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=%2027751557%20&retmode=xml&api_key=27c994b484ce66865666732b7f266964cd08%E2%80%9D

Why don’t you make a document with this sample note and its templates and prototypes, and post that here? Or send it to tinderbox@eastgate.com if that’s better for you.

OK here you go

Thanks

Tinderbox Kaplan Bug.tbx (89.1 KB)

Aha! You had me going there for a minute!

The problem is that, in your HTML, you’re surrounding the URL with typographic or “curly” quotes. HTML requires straight quotes.
If you’re typing HTML into the text of a note, it’s usually best to turn off Smart Quotes: Format ▸ Text ▸ Smart Quotes, or set the attribute $SmartQuotes of the note to false.

1 Like

Aha indeed - simple enough. That you!