We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f046d38 + becb9a1 commit 0208889Copy full SHA for 0208889
asset.js
@@ -7,5 +7,5 @@ export const asset = (path) => {
7
prefix = document.head.querySelector('meta[name="asset-url"]').content
8
}
9
10
- return prefix + '/' + path.replace(/^\/+/, '')
+ return prefix.replace(/\/+$/, '') + '/' + path.replace(/^\/+/, '')
11
0 commit comments