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

[FEATURE] Resource Filter Settings in URL #360

Open
VeckoTheGecko opened this issue Nov 8, 2023 · 3 comments
Open

[FEATURE] Resource Filter Settings in URL #360

VeckoTheGecko opened this issue Nov 8, 2023 · 3 comments
Labels
coding Change that requires coding enhancement New feature or request for the website help wanted Extra attention is needed 🟢high priority A high priority feature

Comments

@VeckoTheGecko
Copy link
Collaborator

Describe your suggested improvement
Load the URL filter settings from the URL, and vice versa. For example:

https://climatetown.github.io/knowledge-hub/resources?tags=knowledge-hubs,climate-journalism&mode=intersect will go to the resource page, select the "Knowledge Hubs" and "Climate Journalism" tags in intersect mode.

It would also be good to add a button to copy the URL for a filter setting to clipboard.

Also needs to ignore incorrect parameters in the URL.

Describe the benefit
This would be really handy for users to share specific filter settings, and will allow a deeper integration of the Hub with the Discord server (e.g., pinning posts in various channels with specific filter settings).

Would you be capable/willing to implement the improvement?
Yes, but also really keen to have other people on board on this (I have some other things to focus on too ;) ).

Additional comments
None

@VeckoTheGecko VeckoTheGecko added enhancement New feature or request for the website help wanted Extra attention is needed 🟢high priority A high priority feature coding Change that requires coding labels Nov 8, 2023
@VeckoTheGecko
Copy link
Collaborator Author

@VeckoTheGecko
Copy link
Collaborator Author

Huh, looks like this dependency does it all. No custom code :D

https://www.npmjs.com/package/query-string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coding Change that requires coding enhancement New feature or request for the website help wanted Extra attention is needed 🟢high priority A high priority feature
Projects
None yet
Development

No branches or pull requests

2 participants