Skip to content

Commit 004ff72

Browse files
committed
Fix snippet URL resolved against bblock files_path instead of output dir
1 parent 82fc865 commit 004ff72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ogc/bblocks/postprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def do_postprocess(bblock: BuildingBlock, light: bool = False) -> bool:
219219
path = snippet.pop('path', None)
220220
if base_url:
221221
if path:
222-
snippet['url'] = PathOrUrl(bblock.files_path).resolve_ref(path).with_base_url(base_url, cwd)
222+
snippet['url'] = PathOrUrl(path).with_base_url(base_url, cwd)
223223
if ref := snippet.get('ref'):
224224
snippet['ref'] = PathOrUrl(bblock.files_path).resolve_ref(ref).with_base_url(base_url, cwd)
225225

0 commit comments

Comments
 (0)