Make pagination template tag remove page=XXX from url before adding