relative url (#393)

This commit is contained in:
Huu Le
2024-10-25 14:13:34 +07:00
committed by GitHub
parent c5559d8e59
commit fa803787e3
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"create-llama": patch
---
DocumentInfo working with relative URLs
@@ -134,7 +134,9 @@ export default function Markdown({
return (
<DocumentInfo
document={{
url: new URL(decodeURIComponent(href)).href,
url: backend
? new URL(decodeURIComponent(href)).href
: href,
sources: [],
}}
className="mb-2 mt-2"