# Serving a simple static html file from inside elm-spa

**URL:** <https://discourse.elm-lang.org/t/serving-a-simple-static-html-file-from-inside-elm-spa/7950>\
**Category:** Learn\
**Created:** [November 29, 2021, 9:50pm UTC](https://discourse.elm-lang.org/t/serving-a-simple-static-html-file-from-inside-elm-spa/7950 "2021-11-29T21:50:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DullBananas](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dullbananas/32/3709_2.png) [@DullBananas](https://discourse.elm-lang.org/u/DullBananas)\
**Post date:** [November 30, 2021, 12:14am UTC](https://discourse.elm-lang.org/t/serving-a-simple-static-html-file-from-inside-elm-spa/7950/2 "2021-11-30T00:14:58Z")

</div>

You might need additional logic in the `update` function, so that when you click a link to “innerspa.html”, it runs `Browser.Navigation.load` instead of `Browser.Navigation.pushUrl` because it usually runs `pushUrl` when the URL is in the same domain. I don’t know if elm-spa allows that.

Maybe it also works if you change the `href` to include the full URL including the domain name

---

_[View the full topic](https://discourse.elm-lang.org/t/serving-a-simple-static-html-file-from-inside-elm-spa/7950)._
