isamplesorg / isamples_webui

Web interface to iSB and iSC APIs
https://isamplesorg.github.io/isamples_webui/
Apache License 2.0
0 stars 1 forks source link

Break out the link calculation to a separate variable #198

Closed dannymandel closed 2 months ago

dannymandel commented 2 months ago

I'm not quite sure why this didn't work as-is…

dannymandel commented 2 months ago

Just for posterity's sake, this was the implementation before I touched things:

    return <a href={window.config.original_source + "/" + value} target="_blank" rel="noopener noreferrer">{parse(text)}</a>

And this is my broken version:

    return <a href={window.config.thingpage + "/" + parse(text)} target="_blank" rel="noopener noreferrer">{parse(text)}</a>
dannymandel commented 2 months ago

My guess is that the embedded expression was too complicated?