projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4919b63
)
Fix homagepage redirection
author
Chocobozzz
<me@florianbigard.com>
Thu, 1 Mar 2018 16:25:57 +0000
(17:25 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 1 Mar 2018 16:25:57 +0000
(17:25 +0100)
client/src/app/app.component.ts
patch
|
blob
|
history
diff --git
a/client/src/app/app.component.ts
b/client/src/app/app.component.ts
index 346e966e5189f665ec14aabd9b08f8c89fa1f60c..f95103365e73822af9a3903e18ed1b9a82caea48 100644
(file)
--- a/
client/src/app/app.component.ts
+++ b/
client/src/app/app.component.ts
@@
-44,7
+44,8
@@
export class AppComponent implements OnInit {
}
ngOnInit () {
- if (this.router.url === '/') {
+ const pathname = window.location.pathname
+ if (!pathname || pathname === '/') {
this.redirectService.redirectToHomepage()
}