there's this weird thing that happens with nginx with paths that end in /kb and I don't know why. this at least fixes the problem.