Removes redirect, code should only be in search