Skip to content

Commit

Permalink
redirect-download-link: custom protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed May 3, 2024
1 parent d1f9170 commit 2eccd0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mdn/process-url/redirect-download-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const redirectDownloadLink = (res: Resource): Resource => {
// interactive-examples
// redirect back to real url
res.downloadLink = uri.search('')
.protocol(externalHost.protocol)
.host(externalHost.host)
.path(path.slice(externalHost.pathPrefixLength))
.toString();
Expand Down

0 comments on commit 2eccd0c

Please sign in to comment.