Marny Lopez

Fixes error when you have multiple parameters in a url

This PR fixes the error in #1170 allowing you to have urls with multiple parameters
... ... @@ -97,8 +97,13 @@ class ParseRouteTree {
Map<String, String> _parseParams(String path, PathDecoded routePath) {
final params = <String, String>{};
var idx = path.indexOf('?');
if (idx > -1) {
path = path.substring(0, idx);
final uri = Uri.tryParse(path);
params.addAll(uri.queryParameters);
}
Match paramsMatch = routePath.regex.firstMatch(path);
for (var i = 0; i < routePath.keys.length; i++) {
var param = Uri.decodeQueryComponent(paramsMatch[i + 1]);
params[routePath.keys[i]] = param;
... ...