Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

fix(navbar): shadow and routing #225

Merged
merged 4 commits into from
Aug 29, 2017

Conversation

willshowell
Copy link
Contributor

  • Navbar shadow wasn't being shown at /categories/forms due to only checking for /components in the start of the url
  • Check only one navigation event (end) and urlAfterRedirects when setting shadow/scoll-position (prevents bug where going to /componentsfoo results in improper shadow)
  • Fix bug where GET STARTED links break after a redirect to the homepage

The last one is weird. If you go to /foo and are redirected back to the homepage, the GET STARTED url is serialized improperly. It looks like some issue with ApplyRedirects#apply and I'm pretty sure is a bug in core. The fix is to use an absolute path.

- Fixes a bug where going to an invalid route starting with /components
would redirect to the homepage and still keep navbar shadow
- Relative links are being serialized improperly after a redirects lands on a component with an empty path... likely an issue in angular/router
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn merged commit a64482f into angular:master Aug 29, 2017
@willshowell willshowell deleted the fix/navbar-elevation branch August 29, 2017 18:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants