Move Web client config page to /configure from /config url path

Update docs, clients and error messages to point to /configure
instead of /config
This commit is contained in:
Debanjum Singh Solanky
2024-07-16 15:33:19 +05:30
parent de15a7a3fc
commit a5c16ad600
25 changed files with 39 additions and 40 deletions

View File

@@ -201,12 +201,12 @@ export function getBackendStatusMessage(
): string {
// Welcome message with default settings. Khoj cloud always expects an API key.
if (!khojApiKey && khojUrl === 'https://app.khoj.dev')
return `🌈 Welcome to Khoj! Get your API key from ${khojUrl}/config#clients and set it in the Khoj plugin settings on Obsidian`;
return `🌈 Welcome to Khoj! Get your API key from ${khojUrl}/configure#clients and set it in the Khoj plugin settings on Obsidian`;
if (!connectedToServer)
return `Could not connect to Khoj at ${khojUrl}. Ensure your can access it`;
else if (!userEmail)
return `✅ Connected to Khoj. ❗Get a valid API key from ${khojUrl}/config#clients to log in`;
return `✅ Connected to Khoj. ❗Get a valid API key from ${khojUrl}/configure#clients to log in`;
else if (userEmail === 'default@example.com')
// Logged in as default user in anonymous mode
return `✅ Signed in to Khoj`;