Hi, friends!
I use for displaying product some parameter which I get now via GET in url - like this:
/my_product_url?p=some_parameter
How can I get this parameter on product page via url, like this:
/my_product_url/some_string
?
Thanks a lot!
Hi, friends!
I use for displaying product some parameter which I get now via GET in url - like this:
/my_product_url?p=some_parameter
How can I get this parameter on product page via url, like this:
/my_product_url/some_string
?
Thanks a lot!
Yep, I found solution for this. It is very simple. In my custom router I need to get my productId (for example, from repository via known URL) and then make forward to frontend.detail.page route with this productId as parameter:
return $this->forwardToRoute("frontend.detail.page", [ ], ["productId" => $productId]);
Maybe, it is not ideal solution, but it works for me)
But if someone has more correct solution - I’ll be glad to know it