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

Add js to layout to parse and update filters from URL #140

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

aivuk
Copy link
Collaborator

@aivuk aivuk commented Oct 12, 2023

Fix #138

I saw this issue yesterday from @lucpretti and suppose that anyone else would have a hard time implementing that because of the lack of documentation and comments. I create a solution myself yesterday night.

This PR basically sync the filter selected on /projects and /specialist in the url, adding them as query params. It also check if the user loaded the page with an address like https://network.okfn.org/project/?category=Civic Tech,Design&language=French and in that case do the proper filtering.

@aivuk aivuk added the enhancement New feature or request label Oct 12, 2023
@aivuk aivuk requested a review from amercader October 12, 2023 09:59
@aivuk aivuk self-assigned this Oct 12, 2023
@amercader
Copy link
Member

Thanks @aivuk ! @shashigharti will have a look and deploy if all good

Copy link

@shashigharti shashigharti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aivuk Thank you! Looks good.

@amercader amercader merged commit 5dab1b7 into main Oct 16, 2023
1 check passed
@amercader amercader deleted the parse-update-filters-from-url branch October 16, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dedicated URLs for filters (categories, countries and languages)
3 participants