handle redirect duplicate