# Web application is not location static folder directly

**URL:** <https://forum.webostv.developer.lge.com/t/web-application-is-not-location-static-folder-directly/6388>\
**Category:** Web App Development\
**Created:** [April 8, 2024, 9:29am UTC](https://forum.webostv.developer.lge.com/t/web-application-is-not-location-static-folder-directly/6388 "2024-04-08T09:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshini](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Harshini](https://forum.webostv.developer.lge.com/u/Harshini)\
**Post date:** [April 8, 2024, 9:29am UTC](https://forum.webostv.developer.lge.com/t/web-application-is-not-location-static-folder-directly/6388/1 "2024-04-08T09:29:48Z")

</div>

When we run the web app application in Visual studio using webOs TV device.

Once we install the application, webOs is not detecting static folder file directly.

At first our index.html file have the below code for location static folder

> ```
> <script defer="defer" src="/static/js/main.db26ae79.js"></script>
> <link href="/static/css/main.c1a6c5ea.css" rel="stylesheet" />
> 
> ```

When I try to run with the same index.html which is created at the time of build. The application is not running. Once I add a dot (.) in front it loads the application in TV

> ```
> <script defer="defer" src="./static/js/main.db26ae79.js"></script>
> <link href="./static/css/main.c1a6c5ea.css" rel="stylesheet" />
> 
> ```

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [April 8, 2024, 11:57pm UTC](https://forum.webostv.developer.lge.com/t/web-application-is-not-location-static-folder-directly/6388/2 "2024-04-08T23:57:51Z")

</div>

Closed as Duplicate of [Image not loading in LG](https://forum.webostv.developer.lge.com/t/image-not-loading-in-lg/6385)
