mirror of
https://github.com/directus/directus.git
synced 2026-02-15 21:15:13 -05:00
Use absolute url instead of relative path for exports (#16724)
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import api from '@/api';
|
||||
import { getRootPath } from '@/utils/get-root-path';
|
||||
import { getPublicURL } from '@/utils/get-root-path';
|
||||
import { notify } from '@/utils/notify';
|
||||
import { readableMimeType } from '@/utils/readable-mime-type';
|
||||
import { Filter } from '@directus/shared/types';
|
||||
@@ -477,8 +477,7 @@ function exportDataLocal() {
|
||||
const endpoint = collection.value.startsWith('directus_')
|
||||
? `${collection.value.substring(9)}`
|
||||
: `items/${collection.value}`;
|
||||
|
||||
const url = getRootPath() + endpoint;
|
||||
const url = getPublicURL() + endpoint;
|
||||
|
||||
let params: Record<string, unknown> = {
|
||||
access_token: api.defaults.headers.common['Authorization'].substring(7),
|
||||
|
||||
Reference in New Issue
Block a user