Skip to content

bug(docs): routing breaks on invalid url string #5229

@CaerusKaru

Description

@CaerusKaru

Bug, feature request, or proposal:

Bug

What is the expected behavior?

After navigating to incorrect route, should be able to navigate using the sidenav menu to a valid route

What is the current behavior?

After navigating to incorrect route, cannot navigate to any other route using the sidenav. Effectively stuck in a redirect.

What are the steps to reproduce?

  1. Navigate to material.angular.io
  2. Click on components
  3. Navigate to a component using the sidenav
  4. Edit the URL to change the name of a component to a clearly invalid component name
  5. Try to navigate to any other part of the page using the sidenav or top navigation (the GitHub link still works, probably bc it's an absolute href)

What is the use-case or motivation for changing an existing behavior?

If someone lands on the docs page from an invalid URL, or tries to manually navigate themselves, the whole site breaks.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Material 2.0.0-beta.7

Stack trace

ERROR TypeError: Cannot read property 'name' of undefined
ERROR Error: Uncaught (in promise): Error: Cannot activate an already activated outlet

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions