Root page for every path


is it possible to always load a specific page on reload. right now if the user is ie on the HomePage I have an url like: http://localhost:8100/#/home and then on refresh the HomePage is loaded.

But instead I want to show a Loading Screen where some other things are done - once this is done it will call nav.setRoot(‘HomePage’)

I’m using the latest stable Ionic version

Right now I added the following in the head of index.html:

  <script type="text/javascript">
    if (window.location.href.match(/#/)) {
        history.pushState("", document.title, window.location.pathname +;