pass ids through encodeURIComponent when turning them into urls