Closed kkoscielniak closed 7 years ago
In parseRoutes() parsing the route isn't possible to fetch path and route.path params. That being said keystone-express-sitemap cannot parse routes and generate the resulting sitemap.xml properly.
parseRoutes()
path
route.path
KeystoneJS version: 4.0.0-beta.5 ExpressJS version: 4.14.0
Found out the way:
Issue exists if you're using express.Router(). It doesn't if you use route binding as example shows.
In
parseRoutes()
parsing the route isn't possible to fetchpath
androute.path
params. That being said keystone-express-sitemap cannot parse routes and generate the resulting sitemap.xml properly.KeystoneJS version: 4.0.0-beta.5 ExpressJS version: 4.14.0