404 page theme not working

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:
Rpe0pyXecU

with the /, e.g. blah.glitch.me/nonexistent/:
firefox_fg7BhRkVFX

how do i fix it

If you are using <link href="style.css"> try changing it to <link href="/style.css">.

thanks, this worked!