implementing the redirect for cloaked links