-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Routing stops working with no errors being shown #55831
Comments
You're providing the Re-providing it causes the child It would be nice if there was a runtime warning when multiple |
@garrettld, you're a star, I've just spent 3 days trying to work out why exactly this was happening to me and you answered in your first line. |
Thank you so much @garrettld, that's resolved the issue. Totally agree that some sort of warning should be raised if multiple instances are detected (at least when running in dev mode). Thanks again, this was an incredibly frustrating issue that was really bumming me out! |
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. |
Which @angular/* package(s) are the source of the bug?
router
Is this a regression?
Yes
Description
I have a simple front end blog application that I'm having issues with the routing for (please see link to the source). The site has three routes, a "home" page listing the posts on the blog, a "contact" page with some simple contact details and a "post" page for showing a specific post.
When loading the home page for the first time, the posts are loaded and links are shown to the relevant pages. Clicking on a post will correctly navigate to the post page and the post is shown. However, if I then navigate back to the home page, the posts are still loaded, however the links do not direct me to the post page anymore despite the url showing the correct link in the bottom left of the browser.
I can also recreate the problem if I refresh on a post page, and then navigate to the home page, where again, none of the links are working.
There are no errors that I can see in the console and I have tried everything that I can think of to debug this issue but to no avail. I am wondering if this is an issue with a recent version of the framework as it doesn't seem like a particularly difficult thing to do.
Any help would be greatly appreciated! Thanks
Please provide a link to a minimal reproduction of the bug
https://github.com/BnSmth/angular
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: