angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

A zero led string gets truncated as a param for ui-sref #3763

Closed IngoVals closed 4 years ago

IngoVals commented 5 years ago

This issue tracker is for Bug Reports and Feature Requests only.

Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.

This is a (check one box):

My version of UI-Router is: 0.4.2

Bug Report

Current Behavior:

I have this ui-sref link, where dynamicParam can often lead with a 0.

<a ui-sref="mystate({query: {{vm.dynamicParam}}})">anchor</a>

But the rendered link get the lead zero removed.

<a ui-sref="mystate({query: 058899112112})" href="/mystate/?query=58899112112">anchor</a>

Expected Behavior:

For the param to be rendered totally like the dynamicParam string is.

<a ui-sref="mystate({query: 058899112112})" href="/mystate/?query=058899112112">anchor</a>

Addendum

Is this a known bug, perhaps that has been fixed.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.