app.get('*', function(req, res){ res.sendFile(__dirname + '/public/404/index.html'); });
is the code i’m using to send my 404 page. but when i add a /
to the end of it, for example:
blah.glitch.me/nonexistent/
instead of
blah.glitch.me/nonexistent
.
somehow when the /
is added, it breaks the theme:
without the / e.g. blah.glitch.me/nonexistent
:
with the /, e.g. blah.glitch.me/nonexistent/
:
how do i fix it