fix(router): fix for leading slash in dart
Using string1 === string2 translates to identical(string1, string2) in dart, which is incorrect as it is possilbe for dart strings to have different reference.
This commit is contained in:
@ -43,7 +43,7 @@ export class RouteRecognizer {
|
||||
StringMapWrapper.set(solution, 'params', pathRecognizer.parseParams(url));
|
||||
|
||||
//TODO(btford): determine a good generic way to deal with terminal matches
|
||||
if (url === '/') {
|
||||
if (url == '/') {
|
||||
StringMapWrapper.set(solution, 'matchedUrl', '/');
|
||||
StringMapWrapper.set(solution, 'unmatchedUrl', '');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user