routing question Let’s say I have this route ```ro...
# box-products
w
routing question Let’s say I have this route
Copy code
route( "echo/:id", "echo.test" );
and this echo test handler
Copy code
writedump(rc);
        abort;
if I call http://myserver/echo/someValue
id = someValue
. That makes sense if I call http://myserver:/echo/%2Fsome%2Fpage
id = some
instead of
id = %2Fsome%2Fpage
or
id = /some/page
. I would expect the router would leave urlencoded values alone and put the exact value in the id url parameter. If I do
someaction?id=%2Fsome%2Fpage
the value will exactly be
id = /some/page
which is correct. So what is the coldbox router doing here. Parsing the url, and decoding BEFORE it is matching a route? That way you can never enter special characters in a path parameter.
Ok, I think I understand. Coldfusion or Lucee is already handling the decoding so my urlencoded path will never hit the coldbox router. So in some cases you can’t use complex id’s.