Skip to content

Commit 405cb51

Browse files
fix: set hash from parsed URL correctly
1 parent fdcb917 commit 405cb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/angular-routing/src/lib/router.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class Router {
113113
this.state$.next({
114114
url: parsedUrl.pathname,
115115
queryParams: this.parseSearchParams(parsedUrl.searchParams),
116-
hash: parsedUrl.hash ? parsedUrl.hash.split('#')[0] : '',
116+
hash: parsedUrl.hash ? parsedUrl.hash.split('#')[1] : '',
117117
});
118118
}
119119

0 commit comments

Comments
 (0)