Answers for "Angular [routerLink] breaks routes by replacing slash with %2F"

0

Angular [routerLink] breaks routes by replacing slash with %2F

[routerLink]="['/articles', article.slug, '/edit']"
 
 this route produces: /articles/some_slag/%2Fedit
 
 simply remove leading slash from 'edit' and you get:
 
 /articles/some_slag/edit
Posted by: Guest on December-21-2020

Code answers related to "Angular [routerLink] breaks routes by replacing slash with %2F"

Code answers related to "Javascript"

Browse Popular Code Answers by Language