api to return correct edit url with instance_id parameter, closes #46