diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index 3d63e5772..804e4f826 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -26,6 +26,7 @@ import { useEffect, useState } from 'react'; import { v4 as uuidv4 } from 'uuid'; import { useConfig } from '../../tools/state'; import { tryMatchPort, ServiceTypeList, StatusCodes, Config } from '../../tools/types'; +import apiKeyPaths from './apiKeyPaths.json'; import Tip from '../layout/Tip'; export function AddItemShelfButton(props: any) { @@ -307,7 +308,7 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) { target="_blank" weight="bold" style={{ fontStyle: 'inherit', fontSize: 'inherit' }} - href={`${hostname}/settings/general`} + href={`${hostname}/${apiKeyPaths[form.values.type as keyof typeof apiKeyPaths]}`} > {t('modal.tabs.options.form.integrations.apiKey.tip.link')} diff --git a/src/components/AppShelf/apiKeyPaths.json b/src/components/AppShelf/apiKeyPaths.json new file mode 100644 index 000000000..3ecd0f338 --- /dev/null +++ b/src/components/AppShelf/apiKeyPaths.json @@ -0,0 +1,9 @@ +{ + "Jellyseerr": "settings", + "Overseerr": "settings", + "Sonarr": "settings/general", + "Radarr": "settings/general", + "Readarr": "settings/general", + "Lidarr": "settings/general", + "Sabnzbd": "sabnzbd/config/general" +}