Router hash dropping last part of url (and hence not working)

I’m trying upgrade an old app (spawned using aurelia cli 0.24) to the current cli 3.01. I’m using webpack per the defaults.

I haven’t changed the router config but my links are now wrong- it’s like the router is dropping the last fragment.

So if my app main page is at myapp.com/foo/index.html, the old version route links look like:

myapp.com/foo/index.html#/someroute

In the new version, it drops the index.html, breaking the route.

myapp.com/foo/#/someroute

What can I do to restore the full url for routes (including the index.html portion)?

1 Like