Goal
With Drupal Commerce, my goal is to have a customizable product with persistent user entered text.
I have added a text field to the order item type and I can see the custom field in the "add to cart" form. When customer enters a value in that field and adds the product to the cart, I can see the value of that field in the cart form view.
I want to have a link to the purchased entity in the cart form view so I checked "Link label to the referenced entity" in the view field configuration.
When I hit that link, I get back to my product page, with the correct variation selected, but the custom text field will be empty.
Question
How can I make this custom text field persistent, that is, "save" its value so that when I click the item link in the cart view, I get back to the product variation with the custom text field already filled in?
Note: I could have multiple products/variations in the cart, each with a different custom text so I need to keep the value on the order item level.
What I have tried
I thought about having that custom text field value as a parameter in the cart form view purchased entity link URL so I tried to rewrite the output of that field/link, but I don't have access to the product entity from that view and I'd need it to compute the new URL... so that won't work.
Any idea?