-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML5LocationStrategy fails to update path on router.navigate #3096
Comments
Does your entry point page specify a Edit: Just went back and tried this in my app and yes removing the base tag causes this issue.
Navigation between routes works however attempting to go back to the |
Thanks for the tip. I just added a base tag and it works now. Is that always going to be required for the HTML5 Strategy? Not exactly hard to add to the page, so, not that big of a deal. |
@bryantharpe you either have to add a Currently the router uses |
Thanks for the input @btford That makes more sense, I went ahead and updated my code to work like that. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It appears that only the HashLocationStrategy updates the url on calls to router.navigate. When I change my LocationStrategy to the HTML5LocationStrategy the urls no longer update when navigating from "/products/:productId" -> "/". The navigation does occur, though.
This is happening on Alpha.31.
The code I'm using is below.
Component Controller code
Routes
Bootstrap
The text was updated successfully, but these errors were encountered: