mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-19 05:26:03 -04:00
relative url (#393)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user