Well there should be some way to specify a default value for an
optional route parameter, so the route would match if an optional
parameter was matched or a default value for the parameter was
provided.
if you do this: addRoute(pattern=“test/:var1?”, handler=“test”,action=“test”,var1=“defaultValue”);
Once the route matches and we convert the extra arguemnts into the requestion collection, in this case the var1 into rc.var1 = “defaultValue”, we will check if it already exists in the request collection. If it exists, we ignore meaning the incoming optional parameter came in, if not, we override it and have our default.