Skip to content
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

allow URLs with no hash in chrome locationChangeStart callback #34744

Closed
wants to merge 1 commit into from

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Apr 8, 2019

fixes #34727

Chrome's $locationChangeStart callback currently does not account for URLs without hashes and calls slice on null. An example of such a URL is in the Maps application. The breadcrumb link Maps in the maps application takes users to the Map listing page. This URL does not contain hash content

This PR updates the logic of $locationChangeStart to return early if no hash exists in the URL.

@nreese nreese requested a review from lizozom April 8, 2019 20:01
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@nreese nreese added release_note:skip Skip the PR/issue when compiling release notes v7.2.0 v8.0.0 labels Apr 8, 2019
Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Tested on Chrome
LGTM

@nreese
Copy link
Contributor Author

nreese commented Apr 11, 2019

Problem was fixed by #34314 so this PR is no longer needed

@nreese nreese closed this Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maps - TypeError: Cannot read property 'slice' of null seen in the console .
3 participants