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 () {
6868 // add classes
6969 revIndex . data . relationships [ entity ] . data . forEach ( ( { id } ) => {
7070 const [ , cleanId ] = id . match ( / ^ .+ - \d + \. \d + \. \d + - ( .* ) / ) ;
71- urls . push ( `/${ p } /${ uniqVersion } /${ entity } /${ cleanId } ` ) ;
71+ urls . push (
72+ `/${ p } /${ uniqVersion } /${ entity } /${ partialUrlEncode ( cleanId ) } `
73+ ) ;
7274
7375 // TODO only include sub routes if that entity has stuff in that route i.e. if it's empty don't pre-render it
7476 urls . push (
@@ -106,7 +108,9 @@ module.exports = function () {
106108
107109 listOfFunctions . forEach ( ( func ) => {
108110 urls . push (
109- `/${ p } /${ uniqVersion } /functions/${ func . class } /${ func . name } `
111+ `/${ p } /${ uniqVersion } /functions/${ encodeURIComponent (
112+ func . class
113+ ) } /${ func . name } `
110114 ) ;
111115 } ) ;
112116 } ) ;
You can’t perform that action at this time.
0 commit comments