Allow .html extensions in path override
jimafisk opened this issue · comments
Jim Fisk commented
Currently if you add a path override in plenti.json
, that name will become a folder and an invisible index.html
file is put inside that folder which a browser will render like a regular path.
Currently I'm working on better 404 error handling (#264). With that, a typical route override could look like:
{
"routes": {
"404": "/404"
}
}
This will produce a path like http://localhost:3000/404/index.html. However, for something like GitLab Pages custom error pages, they require a specific naming convention like http://localhost:3000/404.html. It would be nice if you could accomplish this as a route override:
{
"routes": {
"404": "/404.html"
}
}