debug code for redirect URL