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

Use preventClearHashAfterLogin consistently #676

Conversation

jeroenheijmans
Copy link
Collaborator

Firefox will show annoying behavior for setting location.hash to an empty string if it already is empty: it refreshes the page or scrolls to the top.

The preventClearHashAfterLogin option is passed down to functions to prevent this behavior when it's not needed (e.g. during the results of a silent refresh). However, that option wasn't checked for in a consistent manner. This commit fixes that.

Fixes #493

Firefox will show annoying behavior for setting location.hash to an
empty string if it already is empty: it refreshes the page or scrolls
to the top.

The preventClearHashAfterLogin option is passed down to functions to
prevent this behavior when it's not needed (e.g. during the results
of a silent refresh). However, that option wasn't checked for in a
consistent manner. This commit fixes that.

Fixes manfredsteyer#493
@gotwig
Copy link

gotwig commented Nov 22, 2019

over 20 pull requests, yet the last commit on master is 4 months ago. Is the project actually doing "good"? Or is there a more active fork out there?

@jeroenheijmans
Copy link
Collaborator Author

The maintainer typically does a major release whenever a major Angular release comes out, often with a few minors to follow-up things - as opposed to frequent updates. He's expressed (can't find a link atm) the intention to bring out updates short after ng9 due to come out soonish.

I don't know of any forks with more frequent updates, but I guess it's moderately easy to create a fork yourself if you need a subset of PRs faster than that. Finally, if you want a more frequent update schedule, I think that this other similar library can also be used.

@manfredsteyer manfredsteyer merged commit a1aefd6 into manfredsteyer:master Mar 2, 2020
@manfredsteyer
Copy link
Owner

Thanks

@jeroenheijmans jeroenheijmans deleted the fix-missinng-hash-clearing-prevention branch March 2, 2020 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firefox silent refresh changes main page URL
4 participants