Use :key syntax for parameters in routes and ensure /a/b/ will route to /a/b