Skip to content

Commit

Permalink
EMBCESSMOD-5538: prevent going back to needs assessment from self-ser…
Browse files Browse the repository at this point in the history
…ve confirm page (#2299)

Co-authored-by: Hemanth Kona <Hemanth.Kona@quartech.com>
  • Loading branch information
HemanthKona and Hemanth Kona authored Jun 5, 2024
1 parent 7a890ab commit 2af7bf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function disableGaurdFn(disAllowedRoutes?: Array<string>): CanDeactivateF
): Observable<boolean> {
const dialog = inject(MatDialog);

if (disAllowedRoutes && disAllowedRoutes.includes(nextState.url)) {
if (disAllowedRoutes && disAllowedRoutes.some((url) => nextState.url.startsWith(url))) {
return dialog
.open(DialogComponent, {
data: {
Expand Down

0 comments on commit 2af7bf8

Please sign in to comment.