Skip to content

Commit

Permalink
Merge branch 'w2p-112565_FixNavigationIssueOnItemEntityRedirect_contr…
Browse files Browse the repository at this point in the history
…ibute-7.6' into w2p-112565_FixNavigationIssueOnItemEntityRedirect_contribute-main
  • Loading branch information
Kuno Vercammen committed Feb 29, 2024
2 parents ff05094 + fcec99a commit 240d16a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/item-page/item-page.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('ItemPageResolver', () => {
.pipe(first())
.subscribe(
() => {
expect(router.navigateByUrl).toHaveBeenCalledWith(router.parseUrl(`/entities/${entityType}/${uuid}`).toString());
expect(router.navigateByUrl).toHaveBeenCalledWith(router.parseUrl(`/entities/${entityType}/${uuid}`).toString(), { replaceUrl: true });
done();
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/item-page/item-page.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ItemPageResolver extends ItemResolver {
if (!thisRoute.startsWith(itemRoute)) {
const itemId = rd.payload.uuid;
const subRoute = thisRoute.substring(thisRoute.indexOf(itemId) + itemId.length, thisRoute.length);
this.router.navigateByUrl(itemRoute + subRoute);
this.router.navigateByUrl(itemRoute + subRoute, { replaceUrl: true });
}
}
return rd;
Expand Down

0 comments on commit 240d16a

Please sign in to comment.