Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
fix: public path replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneFreeman committed Nov 16, 2023
1 parent 7f22751 commit 30e7b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/util/media.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export function selectMediaFilePath(
publicFolder = evaluateFolder('public_folder', config, collection!, entryMap, field);
}

if (mediaPathDir.includes(publicFolder) && mediaPathDir != mediaFolder) {
if (mediaPathDir.startsWith(publicFolder) && mediaPathDir != mediaFolder) {
mediaFolder = selectMediaFolder(
config,
collection,
Expand Down

0 comments on commit 30e7b76

Please sign in to comment.