# Load HTML from a file without an extension?

**URL:** <https://forum.ionicframework.com/t/load-html-from-a-file-without-an-extension/249933>\
**Category:** Capacitor\
**Created:** [November 11, 2025, 7:57am UTC](https://forum.ionicframework.com/t/load-html-from-a-file-without-an-extension/249933 "2025-11-11T07:57:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tetheredhit](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tetheredhit](https://forum.ionicframework.com/u/tetheredhit)\
**Post date:** [November 11, 2025, 7:57am UTC](https://forum.ionicframework.com/t/load-html-from-a-file-without-an-extension/249933/1 "2025-11-11T07:57:34Z")

</div>

Here’s my capacitor app’s index.html

```auto
<script>console.log(window.location.href); window.location.href = "/app/splash";</script>

```

and `App/App/public/app/splash` is a file that contains

```auto
<!DOCTYPE html>
<html>
<body>
hello world
</body>
</html>

```

But it never gets loaded! for some reason the app gets stuck in an infinite loop reloading the contents of `index.html` on a different path

```auto
Loading network plugin

⚡️ Loading app at capacitor://localhost...

Reachable via WiFi

⚡️ WebView loaded

⚡️ [log] - capacitor://localhost

⚡️ WebView loaded

⚡️ [log] - capacitor://localhost/app/splash

⚡️ [log] - capacitor://localhost/app/splash

```
