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

ngx-scrollspy destroys previous url query parameters after anchor tag is clicked #187

Open
williamchristophercooley opened this issue May 15, 2018 · 1 comment

Comments

@williamchristophercooley
Copy link

williamchristophercooley commented May 15, 2018

The plugin destroys and does not maintain current query parameters upon anchor link clicking. This is an issue if one is attempting to use queries for any of the data on the page, and observing that data as well in the URL. One cannot refresh the page, bookmark, nor go back to a working position due to the plugin stripping away any url query parameters that were being used. The example is shown below of what happens.

DEFAULT URL LINK:
http://www.somedomain.com/users?id=5q23jn34&filter=true

ISSUE LINK AFTER ANCHOR TAG IS CLICKED
(so when anchor tag is clicked the url parameters are stripped and replaced):
http://www.somedomain.com/users#home


The Ideal Result After Clicking an Anchor Tag:
http://www.somedomain.com/users?id=5q23jn34&filter=true#home

@williamchristophercooley williamchristophercooley changed the title ngx-scrollspy destroys previous url query parameters ngx-scrollspy destroys previous url query parameters after anchor tag is clicked May 15, 2018
@williamchristophercooley
Copy link
Author

@JonnyBGod any ideas mate?

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

No branches or pull requests

1 participant