Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 3370a4a

Browse files
chore: Set urlService.config._decodeParams to false for compat with upcoming @uirouter/core 6.0.6 release
1 parent 6325af8 commit 3370a4a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/services.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ function $uiRouterProvider($locationProvider: ILocationProvider) {
7474

7575
router.viewService._pluginapi._viewConfigFactory('ng1', getNg1ViewConfigFactory());
7676

77+
// Disable decoding of params by UrlMatcherFactory because $___location already handles this
78+
router.urlService.config._decodeParams = false;
79+
7780
const ng1LocationService = (router.locationService = router.locationConfig = new Ng1LocationServices(
7881
$locationProvider
7982
));

test/urlMatcherFactorySpec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ describe('urlMatcherFactory', function () {
631631
validates: angular.noop,
632632
parameters: angular.noop,
633633
parameter: angular.noop,
634+
_getDecodedParamValue: angular.noop,
634635
};
635636
expect($umf.isMatcher(custom)).toBe(true);
636637
});

0 commit comments

Comments
 (0)