4

How can I make routing for this?

URL: /category/main/sub/ or /category/main/sub1/subsub/

I want to have /main/sub/ and /main/sub1/subsub/ as parameters in Index action method of CategoryController.

alexey
  • 8,360
  • 14
  • 70
  • 102

1 Answers1

2

Found the answer:

Should use "/category/{*path}" instead of "/category/{path}" in the routing path.

alexey
  • 8,360
  • 14
  • 70
  • 102