Skip to content

Commit

Permalink
leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
vscaiceanu-1a committed Oct 18, 2023
1 parent e94c117 commit 5de24cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/templates/prefetch.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
resList.forEach(function(resource) {
if (typeof resource === 'string') {
var fullPath = staticsFullPath;
if (hasDynamicContent && dynamicContentFiles.includes(resource)) {
if (hasDynamicContent && dynamicContentFiles.includes(resource.slice(1))) {
fullPath = dynamicContentPath + '/';
}
var splitRes = resource.split('.');
Expand Down
2 changes: 1 addition & 1 deletion src/templates/prefetch.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
resList.forEach(function(resource) {
if (typeof resource === 'string') {
var fullPath = staticsFullPath;
if (hasDynamicContent && dynamicContentFiles.includes(resource)) {
if (hasDynamicContent && dynamicContentFiles.includes(resource.slice(1))) {
fullPath = dynamicContentPath + '/';
}
var splitRes = resource.split('.');
Expand Down

0 comments on commit 5de24cb

Please sign in to comment.