Manipulating the link urls in a safer fashion