angular2 routing - Angular 4 router %2F symbols in path -


there problem angular4 router.

i have created list of menu items , got object back-end router link creation, if menuitem.link equals mypath/example replaced angular mypath%2fexample if clicked in item.

so routing not working because cannot match routes, because have defined (mypath/example)

<a [routerlink]="['/', menuitem.link, menuitem.id]" routerlinkactive="active_link"> 

i have tried add /* router link still not working. answers.

%2f render / character ( percent-encoding ) . problem in routing configuration. make sure use :

({ path: "/*yourroute", component: yourcomponent, name: "name" }), 

basically make sure have * after /


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -