-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hash URLs don't work on page reload #16
Comments
@MaximBalaganskiy Are you using a configured route? Are you only getting this with hash URLs? |
Yes, configured routes. Haven't tried non-hashed. |
@MaximBalaganskiy If you could share the route config I can take a look at this late tonight or tomorrow. (I'm now off to celebrate my birthday.) I hope it's not blocking you. |
import { IRouteViewModel } from "aurelia";
import { routes } from "aurelia-direct-router";
import { ButtonPage } from "./button-page";
import { CardPage } from "./card-page";
import { ExamplesPage } from "./examples-page";
@routes([
{ path: 'button', component: ButtonPage },
{ path: 'card', component: CardPage }
])
export class MyApp implements IRouteViewModel {
} |
Just checked that the same happens with no-hash |
🐛 Bug Report
Hash URLs don't work on page reload
🤔 Expected Behavior
The route is loaded
😯 Current Behavior
An error is thrown
🔦 Context
Loading the app root and navigating to the route works fine.
Probably related - setting default route on
au-viewport
causes the same error, both on root viewport and on child viewports.🌍 Your Environment
The text was updated successfully, but these errors were encountered: