Added var $link to set_url_var so we correctly can set the new uri with