JonnyBGod / ngx-scrollspy

Angular ScrollSpy Service
MIT License
94 stars 21 forks source link

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

Open williamchristophercooley opened 6 years ago

williamchristophercooley commented 6 years ago

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 commented 6 years ago

@JonnyBGod any ideas mate?