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

Commit

Permalink
fix(routing-state): get previous url for two history items
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Aug 29, 2019
1 parent 3b448bd commit d3c09f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/src/lib/back-button/routing-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class FivRoutingStateService {
}

public getPreviousUrl(defaultHref = '/'): string | Navigateable {
if (this.history.length > 2) {
if (this.history.length >= 2) {
return this.history[this.history.length - 2];
}
return defaultHref;
Expand Down

0 comments on commit d3c09f2

Please sign in to comment.