Ionic 4 variable

ionic 4 I have a text variable that when going to a page if there is a “/” in the text, it gives an error how to solve?

showCustomer(id,name,desc,apl,p_ios,p_android,app_nav,app_tot_p,app_tot_q,app_tot_m){
this.router.navigate([’/showcustomer/’ + id + ‘/’ + name + ‘/’ + (desc) + ‘/’ + apl + ‘/’ + p_ios + ‘/’ + p_android +’/’ + app_nav +’/’ + app_tot_p +’/’ + app_tot_q +’/’ + app_tot_m ]);

}

I really dislike putting all this junk in URLs, but if you’re going to do it, use route parameters as documented here.

i think you should simply store all this data in one local variable and then pass it to router.