mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 12:05:08 +00:00
(@fuse/navigation) Keep the fragment as null if it's not provided to prevent empty hashtag appearing at the end of the url
This commit is contained in:
parent
54cd21f496
commit
30d75c9bd7
|
@ -10,7 +10,7 @@
|
||||||
class="fuse-horizontal-navigation-item"
|
class="fuse-horizontal-navigation-item"
|
||||||
[ngClass]="{'fuse-horizontal-navigation-item-active-forced': item.active}"
|
[ngClass]="{'fuse-horizontal-navigation-item-active-forced': item.active}"
|
||||||
[routerLink]="[item.link]"
|
[routerLink]="[item.link]"
|
||||||
[fragment]="item.fragment ?? ''"
|
[fragment]="item.fragment ?? null"
|
||||||
[preserveFragment]="item.preserveFragment ?? false"
|
[preserveFragment]="item.preserveFragment ?? false"
|
||||||
[queryParams]="item.queryParams ?? null"
|
[queryParams]="item.queryParams ?? null"
|
||||||
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
class="fuse-horizontal-navigation-item"
|
class="fuse-horizontal-navigation-item"
|
||||||
[ngClass]="{'fuse-horizontal-navigation-item-active-forced': item.active}"
|
[ngClass]="{'fuse-horizontal-navigation-item-active-forced': item.active}"
|
||||||
[routerLink]="[item.link]"
|
[routerLink]="[item.link]"
|
||||||
[fragment]="item.fragment ?? ''"
|
[fragment]="item.fragment ?? null"
|
||||||
[preserveFragment]="item.preserveFragment ?? false"
|
[preserveFragment]="item.preserveFragment ?? false"
|
||||||
[queryParams]="item.queryParams ?? null"
|
[queryParams]="item.queryParams ?? null"
|
||||||
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
class="fuse-vertical-navigation-item"
|
class="fuse-vertical-navigation-item"
|
||||||
[ngClass]="{'fuse-vertical-navigation-item-active-forced': item.active}"
|
[ngClass]="{'fuse-vertical-navigation-item-active-forced': item.active}"
|
||||||
[routerLink]="[item.link]"
|
[routerLink]="[item.link]"
|
||||||
[fragment]="item.fragment ?? ''"
|
[fragment]="item.fragment ?? null"
|
||||||
[preserveFragment]="item.preserveFragment ?? false"
|
[preserveFragment]="item.preserveFragment ?? false"
|
||||||
[queryParams]="item.queryParams ?? null"
|
[queryParams]="item.queryParams ?? null"
|
||||||
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
class="fuse-vertical-navigation-item"
|
class="fuse-vertical-navigation-item"
|
||||||
[ngClass]="{'fuse-vertical-navigation-item-active-forced': item.active}"
|
[ngClass]="{'fuse-vertical-navigation-item-active-forced': item.active}"
|
||||||
[routerLink]="[item.link]"
|
[routerLink]="[item.link]"
|
||||||
[fragment]="item.fragment ?? ''"
|
[fragment]="item.fragment ?? null"
|
||||||
[preserveFragment]="item.preserveFragment ?? false"
|
[preserveFragment]="item.preserveFragment ?? false"
|
||||||
[queryParams]="item.queryParams ?? null"
|
[queryParams]="item.queryParams ?? null"
|
||||||
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
[queryParamsHandling]="item.queryParamsHandling ?? null"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user