I have a routing.yml file which has the following path: path: '/downloads/{path_dir}'

it works fine when the url is /downloads/diana for example.

but when the url is /downloads/diana/cast then it says "page not found" .
How can i make this work an unlimited amount of subdirectories?

marked as duplicate by kiamlaluno May 13 at 5:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Hi I have tried the answer on that page (the second one which requires a new class, since the first one says it will not work. ) That one doesnt work either , the second one. There must be an easier way I would think this is something that is very needed. – Diana May 30 '17 at 22:17
  • The second answer involves the query string! The first answer will work like desired by you, using the uri. – rémy May 30 '17 at 22:39
  • According to the post it says it doesn't work – Diana May 31 '17 at 0:18
  • Hi Remy the first answer does not work for me – Diana May 31 '17 at 14:51

Browse other questions tagged or ask your own question.