Closed sklinger closed 6 years ago
Are you setting the router's root and the browser's base element?
Browser base element is set to <base href="/client-app"/>
.
App router is set to config.options.root = "/client-app/";
@EisenbergEffect this can be closed as a dupe
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows [10]
Node Version: 7.5.0
NPM Version: 4.1.2
Aurelia Webpack AND Version webpack 2.6.1
Current behavior: When using aurelia in a sub-directory with activated pushState:
A link to the root of the website (outside of the aurelia app) is still captured and the aurelia app root (/client-app) is displayed instead of the websites root (/).
Also all generated router links do not have the correct prefix (/client-app).
Expected/desired behavior:
I created a small test project and a stack overflow question for the problem already: https://github.com/sklinger/aurelia-minimal-webpack https://stackoverflow.com/q/44586245/21566