Load HTML from a file without an extension?

Here’s my capacitor app’s index.html

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

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

<!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

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