Skip to content

Commit 24997fa

Browse files
feat: redirected angular in depth articles when switched to polish version (#336)
1 parent 1df3c62 commit 24997fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libs/blog/articles/data-access/src/lib/guards/article-exists.guard.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ export const articleExistsGuard: CanActivateFn = (route) => {
4444
localizeService.localizePath(['/', alternativeLanguageSlug()]),
4545
{},
4646
);
47-
} else {
48-
return notFoundPageUrlTree;
49-
}
47+
} else return router.createUrlTree([`/${transloco.getActiveLang()}`]);
5048
}
5149

5250
return notFoundPageUrlTree;

0 commit comments

Comments
 (0)