Skip to content

Commit 09a465a

Browse files
author
pooya parsa
committed
fix(pwa-utils): ensure joinUrl not modifying scheme part
1 parent c233696 commit 09a465a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/pwa-utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function isUrl (url) {
99
}
1010

1111
function joinUrl (...args) {
12-
return path.join(...args)
12+
return path.join(...args).replace(':/', '://')
1313
}
1414

1515
function getRouteParams (options) {

test/fixture/nuxt.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ module.exports = {
2020
description: 'Test Project Description'
2121
},
2222

23+
// build: {
24+
// publicPath: 'https://cdn.com/assets/'
25+
// },
26+
2327
workbox: {
2428
offlineAnalytics: true,
2529
dev: true,

0 commit comments

Comments
 (0)