Fixed failing hashtag visibility toggle. #2372
Summary
Closes #2372 (closed),
Fixed failing hashtag visibility toggle.
Currently on production, if you click a hashtag, and check the URL, it updates fine with the hashtag, but if you click it again to turn it off, it does not.
Steps to test
- Go to discovery feed.
- Toggle on a hashtag of your choosing.
- Check the URL updates accordingly
- Click again
- The 'hashtag' segment should be gone from the URL
Also, you should be able to toggle directly between hashtags.
Estimated Regression Scope
This effects a small segment of the sidebar selector (specifically one function that's called on click event hashtagVisibilityChange
). This should only be able to affect the updating of URLs when that button is clicked. Regardless, in the worst-case calamity situation, maybe the event propagation could break the sidebar feed, or stop the URL updating properly when using the selector.