Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix deep link with query params

Chocobozzz429a1609435f
diff --git a/client/src/app/header/header.component.ts b/client/src/app/header/header.component.ts
index 0a2e02f591..112cd68729 100644
--- a/client/src/app/header/header.component.ts
+++ b/client/src/app/header/header.component.ts
@@ -174,13 +174,13 @@ export class HeaderComponent implements OnInit, OnDestroy {
const iosConfig = this.htmlConfig.client.openInApp.ios
const getVideoId = (url: string) => {
- const matches = url.match(/^\/w\/([^/]+)$/)
+ const matches = url.match(/^\/w\/([^/?;]+)/)
if (matches) return matches[1]
}
const getChannelId = (url: string) => {
- const matches = url.match(/^\/c\/([^/]+)/)
+ const matches = url.match(/^\/c\/([^/?;]+)/)
if (matches) return matches[1]
}