I'd like to generate the URL of the product on the store if it is published or a preview URL if its in draft in the "Web"/merchant facing Admin interface.
I can see one way of doing it - manually generating the URL using the "handle" field of shopifyProduct and "domain" field of the shopifyShop models. My question is that does Gadget provide a library of standard commonly used functions like these?