Using @aurelia/router-lite how can i get a route to reload if it uses the same component? In the documentation it states that “router-lite uses replace when the parameters are changed and none otherwise”
However, the above stackblitz example still does not reflect the correct behaviour. It’s using the dev branch of aurelia, so it should include the newest changes. Is this correct?
Navigating from ce-1 to ce-2 or ce2 to ce-1 in the example does not do anything. This should trigger the lifecycle functions?
I also noticed that right after the page loads, navigating from ce-1 to ce-2 or ce2 to ce-1 does not work. It only starts working after going to ce-one/1 first.
@ivan@elitastic It happens because of this part. When transitioning from/to empty path, it seemed like a sensible choice to perform no transition. Note that in this case, the current component and the next component are one and the same.
The workaround is to add a redirection for the empty path instead. Here is a working example.