Fix 404 handling on docs pages