Skip to content

Commit c7f07e3

Browse files
committed
Quick & dirty backport of adding raw option to Type
(see angular-ui#1119)
1 parent 805e69b commit c7f07e3

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

release/angular-ui-router.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* State-based routing for AngularJS
3-
* @version v0.2.15
3+
* @version v0.2.15-dev-2015-12-30
44
* @link http://angular-ui.github.com/
55
* @license MIT License, http://www.opensource.org/licenses/MIT
66
*/
@@ -1014,7 +1014,11 @@ UrlMatcher.prototype.format = function (values) {
10141014
if (isArray(encoded)) {
10151015
result += map(encoded, encodeDashes).join("-");
10161016
} else {
1017-
result += encodeURIComponent(encoded);
1017+
if (param.type.raw) {
1018+
result += encoded;
1019+
} else {
1020+
result += encodeURIComponent(encoded);
1021+
}
10181022
}
10191023
}
10201024
result += nextSegment;

0 commit comments

Comments
 (0)