SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(ngMock/$httpBackend): correctly ignore query params in {expect,when}Route

Previously, a route definition such as
`$httpBackend.whenRoute('GET', '/route/:id')` matched against a URL with
query params, for example `/route/1?q=foo`, would incorrectly include
the query params in `id`: `{id: '1?q=foo', q: 'foo'}`.

This commit fixes it, so that the extracted `params` will now be:
`{id: '1', q: 'foo'}`.

Fixes #14173

Closes #16589
G
Georgii Dolzhykov committed
be417f28549e184fbc3c7f74251ac21fca965ae8
Parent: 3a517c2
Committed by George Kalpakas <kalpakas.g@gmail.com> on 6/18/2018, 4:50:10 PM