diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-13 10:37:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-13 10:37:55 +0200 |
commit | 722bca907b6aa69c3b617221870451ccf436921a (patch) | |
tree | 1da6b69816f690db274e378fe559dc3193050aae /client/src/app/app.component.ts | |
parent | 19041ac885f98de5494476376b65d454c656b230 (diff) | |
download | PeerTube-722bca907b6aa69c3b617221870451ccf436921a.tar.gz PeerTube-722bca907b6aa69c3b617221870451ccf436921a.tar.zst PeerTube-722bca907b6aa69c3b617221870451ccf436921a.zip |
Fix component reuse on channel/account videos
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index ad0588b99..915466af7 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -125,8 +125,8 @@ export class AppComponent implements OnInit { | |||
125 | try { | 125 | try { |
126 | resetScroll = false | 126 | resetScroll = false |
127 | 127 | ||
128 | const previousUrl = new URL(window.location.origin + e1.url) | 128 | const previousUrl = new URL(window.location.origin + e1.urlAfterRedirects) |
129 | const nextUrl = new URL(window.location.origin + e2.url) | 129 | const nextUrl = new URL(window.location.origin + e2.urlAfterRedirects) |
130 | 130 | ||
131 | if (previousUrl.pathname !== nextUrl.pathname) { | 131 | if (previousUrl.pathname !== nextUrl.pathname) { |
132 | resetScroll = true | 132 | resetScroll = true |