Skip to content

Commit

Permalink
fix: assign new value for route replacement (#3582)
Browse files Browse the repository at this point in the history
Signed-off-by: Marie JONES <[email protected]>
  • Loading branch information
marie-j authored Sep 14, 2020
1 parent 077861c commit b62d029
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ angular
atInternetUiRouterPluginProvider.addStateNameFilter((routeName) => {
let route = routeName || '';
atInternetConfigurationProvider.stateRules.forEach((rule) => {
route.replace(rule.pattern, rule.replacement);
route = route.replace(rule.pattern, rule.replacement);
});
route = routeName.replace(/\./g, '::');
route = route.replace(/\./g, '::');
return atInternetConfigurationProvider.prefix
? `${atInternetConfigurationProvider.prefix}::${route}`
: route;
Expand Down

0 comments on commit b62d029

Please sign in to comment.