Starting with the latest version of Angular2 (2.0.0-beta.14), it is possible to have query parameters containing several slashes, for example / foo / bar.
This works fine, however whenever I use the multi-slash option in the RouterLink link, it escapes /with %2F, causing the routes to no longer work on reboot.
My link looks like this: <a [routerLink]="['/Page', {page: page.url | slug}]" class="list-group-item">{{ page.title }}</a>
I’m even building a slug inside the pipe URIDecode, and when I record it, that’s right. It would write something like /pages/level-1/, but when I check the actual tag aon the page, it says href="/pages%2Flevel-1".
I am pretty ignorant because even when I type the value {{ page.url | slug }}in my HTML template, it returns a URL with slashes.
source
share