diff --git a/src/utils/url.js b/src/utils/url.js index 68c73aa5..2f3cfba1 100644 --- a/src/utils/url.js +++ b/src/utils/url.js @@ -52,7 +52,11 @@ export const urlResolver = configuration => { metadata.type === 'icons' ? 'icons' : 'apps' ); - url = `${type}/${metadata.name}${path}`; + if (metadata._user) { + url = `vfs/readfile?path=${encodeURIComponent(`home:/.packages/${metadata.name}${path}`)}`; + } else { + url = `${type}/${metadata.name}${path}`; + } } return prefix