Passing a variable to a backend page

HOWEVER … if I put this in the front end code: let productId … then it APPEARS to work … !!!

So it WAS the solution (or so it seems) … thanks @mvveiga !