diff --git a/libs/ngxtension/linked-query-param/src/linked-query-param.ts b/libs/ngxtension/linked-query-param/src/linked-query-param.ts index 2e0326f5..3aaf9aed 100644 --- a/libs/ngxtension/linked-query-param/src/linked-query-param.ts +++ b/libs/ngxtension/linked-query-param/src/linked-query-param.ts @@ -35,6 +35,7 @@ type NavigateMethodFields = Pick< | 'onSameUrlNavigation' | 'replaceUrl' | 'skipLocationChange' + | 'preserveFragment' >; /** @@ -93,6 +94,7 @@ export class LinkedQueryParamGlobalHandler { onSameUrlNavigation, replaceUrl, skipLocationChange, + preserveFragment, } = config; if (queryParamsHandling || queryParamsHandling === '') { this._navigationExtras.queryParamsHandling = queryParamsHandling; @@ -106,6 +108,9 @@ export class LinkedQueryParamGlobalHandler { if (skipLocationChange) { this._navigationExtras.skipLocationChange = skipLocationChange; } + if (preserveFragment) { + this._navigationExtras.preserveFragment = preserveFragment; + } } /**