Skip to content

Commit 8d22642

Browse files
committed
synthesize url properly
fixes #3881
1 parent 6a88ffc commit 8d22642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quarto-core/attribution/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function synthesizeCitationUrl(
452452
} else {
453453
const relativePath = relative(
454454
rootDir,
455-
join(dirname(outputFile), basename(outputFile)),
455+
join(dirname(input), basename(outputFile)),
456456
);
457457
const part = pathWithForwardSlashes(relativePath);
458458
return `${baseUrl}/${part}`;

0 commit comments

Comments
 (0)