# Relative URLs with Template Node in macOS

**URL:** <https://discourse.nodered.org/t/relative-urls-with-template-node-in-macos/66297>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [10 August 2022 19:02 UTC](https://discourse.nodered.org/t/relative-urls-with-template-node-in-macos/66297 "2022-08-10T19:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielEcheverri](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danielecheverri/32/62150_2.png) [@DanielEcheverri](https://discourse.nodered.org/u/DanielEcheverri)\
**Post date:** [10 August 2022 19:02 UTC](https://discourse.nodered.org/t/relative-urls-with-template-node-in-macos/66297/1 "2022-08-10T19:02:36Z")

</div>

Hi everyone. I have NodeRed v2.2.2 running in my Macbook. My flow has a template node that serves an HTML page (a Twine story in case you are familiar with it). I use NodeRed to mediate between an ESP32 and the content of that HTML page; that way, a sensor triggered in the ESP32 displays a different text on the HTML page.  
The page not only displays text but also plays different audio files which are currently hosted on my personal website. However, that means that I am using absolute URLs for each audio file (which must be downloaded) instead of relative URLs. I cannot find a folder in my NodeRed installation (located in `/Users/user/.node-red/`) where I could place the audio files within my computer for them to be served directly. Any suggestions? Thanks!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [10 August 2022 20:23 UTC](https://discourse.nodered.org/t/relative-urls-with-template-node-in-macos/66297/2 "2022-08-10T20:23:40Z")

</div>

I suggest you search the forum for [httpstatic](https://discourse.nodered.org/search?expanded=true&q=httpstatic), there is plenty of info on setting up a httpstatic folder to server up local files, and look at docs [Configuration : Node-RED](https://nodered.org/docs/user-guide/runtime/configuration#runtime-configuration)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 August 2022 20:24 UTC](https://discourse.nodered.org/t/relative-urls-with-template-node-in-macos/66297/3 "2022-08-24T20:24:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
