Glue-Storefront custom routes

Nico Stark
Nico Stark Senior PHP Developer Posts: 4 🧑🏻‍🚀 - Cadet

Hoi together 👋,

We have created a custom route in the Glue storefront. e.g. (GET /dummy/foo).

Now we would like to be able to pass on a parameter, but it doesn't seem to work that easily. e.g. (GET /dummy/foo/{id}).

Hence the question:
Where do I have to set this so that an ID is accepted at the end and no 404 appears? 🤷‍♀️

It was easier in the "old Glue" 😁

Thank you for reply and have a great Day 🏄‍♀️

Best Answer

  • Nico Stark
    Nico Stark Senior PHP Developer Posts: 4 🧑🏻‍🚀 - Cadet
    Answer ✓

    Hi Victor,
    Maybe I should go to bed.
    It's in the Symfony documentation 🤦‍♂️.
    Of course it works if you do it right. I had forgotten the documentary


    Thank you for this

Answers