You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: ui-sref="route1" will incorrectly generate a url of href="route1?param1=something¶m2=somethingelse"
Steps to reproduce:
Define a state with search parameters (url: 'route1?param1¶m2')
Use ui-sref to define two links, one to just /route1 (ui-sref="route1") and one to /route1?param1=something¶m2=somethingelse (ui-sref="route1({ param1: 'something', param2: 'somethingelse' }))
browse to /route1. Everything is as expected. ui-sref="route1" generates /route1 and ui-sref="route1({ param1: 'something', param2: 'somethingelse' }) generates /route1?param1=something¶m2=somethingelse
browse to /route1?param1=something¶m2=somethingelse. Both ui-sref directives generate a url of /route1?param1=something¶m2=somethingelse. This is not expected and problematic. The first ui-sref (ui-sref="route1") should still generate a url of /route1
Problem:
ui-sref="route1"
will incorrectly generate a url ofhref="route1?param1=something¶m2=somethingelse"
Steps to reproduce:
url: 'route1?param1¶m2'
)/route1
(ui-sref="route1"
) and one to/route1?param1=something¶m2=somethingelse
(ui-sref="route1({ param1: 'something', param2: 'somethingelse' })
)ui-sref="route1"
generates/route1
andui-sref="route1({ param1: 'something', param2: 'somethingelse' })
generates/route1?param1=something¶m2=somethingelse
/route1?param1=something¶m2=somethingelse
. Both ui-sref directives generate a url of/route1?param1=something¶m2=somethingelse
. This is not expected and problematic. The first ui-sref (ui-sref="route1"
) should still generate a url of/route1
Here is a plunker demonstrating the problem.
The text was updated successfully, but these errors were encountered: