Skip to content

Commit

Permalink
Deeplink: fix play path component check (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby authored Nov 10, 2023
1 parent 4d83349 commit 24ca09d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/deeplink/v1/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 35;
var parsePlayUrlVersion = 36;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand Down Expand Up @@ -200,8 +200,8 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
}
}

if (!pathname.startsWith("/play")) {
console.log("No /play path in url.");
if (!(pathname == "/play" || pathname.startsWith("/play/"))) {
console.log("No /play path component in url.");
return null;
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/deeplink/v2/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 35;
var parsePlayUrlVersion = 36;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand Down Expand Up @@ -173,8 +173,8 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
}
}

if (!pathname.startsWith("/play")) {
console.log("No /play path in url.");
if (!(pathname == "/play" || pathname.startsWith("/play/"))) {
console.log("No /play path component in url.");
return null;
}

Expand Down

0 comments on commit 24ca09d

Please sign in to comment.