When the user searches for a category and year, these are saved as URL query parameters in the form of ?category=1&year=1929
If the user refreshes the page with query params or sends the link to someone else, the site will load with that category and year selected in the dropdown and the correct results showing.
User can click the title in the top to navigate to the homepage and strip out their query params
If user opens the site with no query params, it uses Best Picture as the default category
Behind the scenes:
Searching and client-side state is tracked using category_id instead of normalized_name
As proposed in #4
?category=1&year=1929
Behind the scenes:
category_id
instead ofnormalized_name
key
props forEnrichedLink
s to fix console error