How can I filter entity titles in an autocomplete form and use the title as context for a View page? I am trying to provide a form with a single autocomplete text field on the front page.  The user can search for a title of the product (commerce_product), and when they submit, they're redirected to a views page with the title as context.

These are baseball cards from multiple sellers, so there can be many cards and variations of a single card with the same name, e.g. multiple sellers sell a "Barry Bonds" card.

When the user enters the name of the card and submits, I need to redirect them to a views page to display all the cards for that particular title (card name).

The part I'm trying to figure out is how to use the selected title on the front page and send the user to a views page with that title so I can use it in a view. I assume that would be a Context, but I'm not having success finding how to do that.  To clarify the flow:


User hits front page and searches for a product title.
The user submits and is redirected to a views page.
On the views page, the user can browse all the cards under that title.
Here's how I solved my problem:


Added an ID field (the ID from the source I'm pulling/validating player names) to my variation.  On creation of a variation, I store the ID in the field when the user selects the player name during product creation, e.g. "Barry Bonds" is ID 35456 in my source.
I'm using a regular autocomplete route in my form instead of an entity_autocomplete.  My autocomplete handler does an entity query on cards (product variations) that are active and match the player name.
After the player is selected from the autocomplete, on form validation, I re-select the player to get the ID.
On form submit I pass the ID with the URL to my views page as a contextual filter, where it expects it as a field value in the URL, e.g. "/player-card-search/35456".


Creating the new ID field in my product variation feels redundant, but it got me to the solution.