|
@@ -2,6 +2,7 @@
|
|
|
import { getContext, onMount, tick } from 'svelte';
|
|
|
import Modal from '$lib/components/common/Modal.svelte';
|
|
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
|
|
+ import { WEBUI_API_BASE_URL } from '$lib/constants';
|
|
|
|
|
|
const i18n = getContext('i18n');
|
|
|
|
|
@@ -91,7 +92,7 @@
|
|
|
<a
|
|
|
class="hover:text-gray-500 hover:dark:text-gray-100 underline flex-grow"
|
|
|
href={document?.metadata?.file_id
|
|
|
- ? `/api/v1/files/${document?.metadata?.file_id}/content${document?.metadata?.page !== undefined ? `#page=${document.metadata.page + 1}` : ''}`
|
|
|
+ ? `${WEBUI_API_BASE_URL}/files/${document?.metadata?.file_id}/content${document?.metadata?.page !== undefined ? `#page=${document.metadata.page + 1}` : ''}`
|
|
|
: document.source?.url?.includes('http')
|
|
|
? document.source.url
|
|
|
: `#`}
|