mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix: only append link with page attribute if metatada.page is available
This commit is contained in:
parent
8eb82265d0
commit
f69956bda8
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@
|
|||
<a
|
||||
class="hover:text-gray-500 hover:dark:text-gray-100 underline"
|
||||
href={document?.metadata?.file_id
|
||||
? `/api/v1/files/${document?.metadata?.file_id}/content#page=${document?.metadata?.page + 1}`
|
||||
? `/api/v1/files/${document?.metadata?.file_id}/content${document?.metadata?.page !== undefined ? `#page=${document.metadata.page + 1}` : ''}`
|
||||
: document.source.name.includes('http')
|
||||
? document.source.name
|
||||
: `#`}
|
||||
|
|
|
|||
Loading…
Reference in a new issue