Fix improper request parsing when on child pages.