docs: handle /dev and /admin routes
This commit is contained in:
parent
fd3fc99412
commit
cf29dfd8f3
@ -88,6 +88,14 @@ const config = {
|
|||||||
// /2.6/redirect -> /redirect
|
// /2.6/redirect -> /redirect
|
||||||
return [ path.replace("/2.6","") ];
|
return [ path.replace("/2.6","") ];
|
||||||
}
|
}
|
||||||
|
if ( path.startsWith("/admin/") ) {
|
||||||
|
// handle the old docs group /admin
|
||||||
|
return [ path.replace("/admin/","/administration/") ];
|
||||||
|
}
|
||||||
|
if ( path.startsWith("/dev/") ) {
|
||||||
|
// handle the old docs group /dev
|
||||||
|
return [ path.replace("/dev/","/development/") ];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user