ctx.pathname should be relative to base