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

Update URL based on selected filters #1011

Open
davidak opened this issue Oct 20, 2020 · 1 comment
Open

Update URL based on selected filters #1011

davidak opened this issue Oct 20, 2020 · 1 comment

Comments

@davidak
Copy link
Collaborator

davidak commented Oct 20, 2020

For example when i click on the tag Ubuntu, the URL can become

https://uses.tech/#Ubuntu

so i can send that link and new visitors will see the filtered page.

Also for multiple filters #585

https://uses.tech/#linux+🇩🇪

@nico-bachner
Copy link
Contributor

What about a page-based approach?

For example: https://uses.tech/ubuntu

Admittedly, I am not very familiar with Gatsby, but I assume there is a way you can call a route [slug].js?
That way, we could have the desired effect.

Caveats:

  • I don't see how this would be extensible to combined categories (your example should become https://uses.tech/linux/🇩🇪 but I don't know how this can be achieved)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants