Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 121 forks source link

Query Params redirect #284

Open eglas opened 6 years ago

eglas commented 6 years ago

When passing a query param or string of query params Enduro can't find the generated files:

Error: ENOENT: no such file or directory, stat '/var/www/node/endurosite/_generated/something?cmp=someparam/index.html'

This could be fixed by modifying : /libs/enduro_server/enduro_server.js Before Line 120: let a = requested_url.split('/').filter(x => x.length) a line could be added: requested_url = requested_url.split('?')[0] That would prevent the error.