You don't need to do this, you are going from e.g.

/products/eap/get-started -> /products/eap/developermaterials

So adding it to the query string is redundant (you already have code to read the product from the page variables).