Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit d3c09f2

Browse files
committed
fix(routing-state): get previous url for two history items
1 parent 3b448bd commit d3c09f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/core/src/lib/back-button/routing-state.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class FivRoutingStateService {
7171
}
7272

7373
public getPreviousUrl(defaultHref = '/'): string | Navigateable {
74-
if (this.history.length > 2) {
74+
if (this.history.length >= 2) {
7575
return this.history[this.history.length - 2];
7676
}
7777
return defaultHref;

0 commit comments

Comments
 (0)