File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ module.exports = function () {
68
68
// add classes
69
69
revIndex . data . relationships [ entity ] . data . forEach ( ( { id } ) => {
70
70
const [ , cleanId ] = id . match ( / ^ .+ - \d + \. \d + \. \d + - ( .* ) / ) ;
71
- urls . push ( `/${ p } /${ uniqVersion } /${ entity } /${ cleanId } ` ) ;
71
+ urls . push (
72
+ `/${ p } /${ uniqVersion } /${ entity } /${ partialUrlEncode ( cleanId ) } `
73
+ ) ;
72
74
73
75
// TODO only include sub routes if that entity has stuff in that route i.e. if it's empty don't pre-render it
74
76
urls . push (
@@ -106,7 +108,9 @@ module.exports = function () {
106
108
107
109
listOfFunctions . forEach ( ( func ) => {
108
110
urls . push (
109
- `/${ p } /${ uniqVersion } /functions/${ func . class } /${ func . name } `
111
+ `/${ p } /${ uniqVersion } /functions/${ encodeURIComponent (
112
+ func . class
113
+ ) } /${ func . name } `
110
114
) ;
111
115
} ) ;
112
116
} ) ;
You can’t perform that action at this time.
0 commit comments