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

Commit

Permalink
fix(routing-state): debug routing
Browse files Browse the repository at this point in the history
  • Loading branch information
garygrossgarten committed Mar 17, 2019
1 parent 83c4a1a commit 4af9b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/core/src/lib/services/routing-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export class FivRoutingStateService {
if (fromUrl !== this.config.root) {
this.history.push(fromUrl);
}
if (this.history[0] !== this.config.root) {
this.history = [this.config.root, ...this.history];
}
this.history = this.history
.reverse()
.filter(function (item, pos, self) {
return self.indexOf(item) === pos;
})
.reverse();
if (this.history[0] !== this.config.root) {
this.history = [this.config.root, ...this.history];
}
}

public getCurrentUrl(): string {
Expand Down

0 comments on commit 4af9b62

Please sign in to comment.