Closed Larynn closed 1 year ago
Is this a project created with odin new
or is it one of the sample projects?
A new project created with odin new
doesn't even import the RoutingModule
or declare any routes, so I'm finding it hard to see how the project creation is relevant here?
Dear @Larynn,
this isn't a bug of odin
project generation. If you add angular routing to project choose HashLocationStrategy
. I found the description in https://codecraft.tv/courses/angular/routing/routing-strategies/ very helpful to understand the differences. And reloading a deployed M3 H5 application will only work with HashLocationStrategy
.
Describe the bug Routing concatenates to previous url upon reload of page.
To Reproduce Steps to reproduce the behavior:
1.Create a simple routing model sample structure: app-component | child1 | child2
Expected behavior after reload and clicking child2 it url should be localhost8080/child2
Version m3-odin: 5.0.0 m3-odin-anular: 5.0.0
Additional context