diff --git a/apps/app-frontend/src/components/ui/URLConfirmModal.vue b/apps/app-frontend/src/components/ui/URLConfirmModal.vue index c3d8fad83..f53687d6e 100644 --- a/apps/app-frontend/src/components/ui/URLConfirmModal.vue +++ b/apps/app-frontend/src/components/ui/URLConfirmModal.vue @@ -20,20 +20,20 @@ defineExpose({ async show(event) { if (event.event === 'InstallVersion') { version.value = await useFetch( - `https://api.modrinth.com/v2/version/${encodeURIComponent(event.id)}`, + `https://api.modrinth.com/v2/versions/${encodeURIComponent(event.id)}`, 'version', ) project.value = await useFetch( - `https://api.modrinth.com/v2/project/${encodeURIComponent(version.value.project_id)}`, + `https://api.modrinth.com/v2/projects/${encodeURIComponent(version.value.project_id)}`, 'project', ) } else { project.value = await useFetch( - `https://api.modrinth.com/v2/project/${encodeURIComponent(event.id)}`, + `https://api.modrinth.com/v2/projects/${encodeURIComponent(event.id)}`, 'project', ) version.value = await useFetch( - `https://api.modrinth.com/v2/version/${encodeURIComponent(project.value.versions[0])}`, + `https://api.modrinth.com/v2/versions/${encodeURIComponent(project.value.versions[0])}`, 'version', ) }