Skip to content

Commit

Permalink
Fix canonical URL generation in custom-service-worker.ts by adding mi…
Browse files Browse the repository at this point in the history
…ssing slashes after protocol
  • Loading branch information
tachibana-shin committed Aug 28, 2024
1 parent 3a63c69 commit c409266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-pwa/custom-service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if (process.env.MODE !== "ssr" || process.env.PROD) {
}</script>`
: "") +
`<link rel="canonical" href="${
event.url.protocol + event.url.host
event.url.protocol + "//" + event.url.host
}/phim/${id || anime}" />` +
"</head>"
)
Expand Down

0 comments on commit c409266

Please sign in to comment.