Skip to content

Commit

Permalink
chore: local storage logic for originalUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Nov 18, 2024
1 parent 531cd90 commit 6d572af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ export class RouteConfigService {
.then(() => {
if (this.urlBeforeLoginService.originalUrl != '') {
this.urlBeforeLoginService.goToOriginalUrl();
localStorage.removeItem('originalUrl');
} else {
this.router.navigate([this.defaultRoute]);
localStorage.removeItem('originalUrl');
}
});
} else {
Expand Down

0 comments on commit 6d572af

Please sign in to comment.