aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Angular/src/app/components/post-page/post-page.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
index ef046e1..413ff80 100644
--- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
+++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
@@ -92,7 +92,7 @@ export class PostPageComponent implements OnInit {
}
backToProfile(): void {
- this._router.navigate(['/profile/' + this.post.creatorUsername]);
+ this._router.navigate(['/profile/' + this._tokenService.getUsernameFromSessionStorageToken()]);
}
toLogin(): void {