Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ngRoute): improve interpolation of params in string
When the redirect path contains optional or special parameters the interpolation function misses to remove them. This is also the case for the auto-generated redirection where a slash is appended or removed to a route. Change the way parameters are interpolated in a string. Remove undefined optional named groups and properly prepend a slash in case the named group was starting with one. Related to angular#5746.
- Loading branch information