From 78bbee64499d077b2c4dc8554021975a68d4d548 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 3 Nov 2025 21:53:33 +0400 Subject: [PATCH] Refactor breadcrumbs link and reorder workflow env - Breadcrumbs: switch to resolve from '$app/paths' for the All projects link - Workflow: reorder env vars so APPWRITE_ENDPOINT precedes AI_SERVICE_BASE_URL --- .github/workflows/tests.yml | 2 +- src/lib/components/breadcrumbs.svelte | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f204acf9..e322e42f4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,8 +9,8 @@ on: env: PUBLIC_CONSOLE_PROFILE: 'default' - PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1' PUBLIC_APPWRITE_ENDPOINT: http://appwrite.test/v1 + PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1' jobs: build: diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte index b825e992c..94d929e91 100644 --- a/src/lib/components/breadcrumbs.svelte +++ b/src/lib/components/breadcrumbs.svelte @@ -19,7 +19,7 @@ import { isSmallViewport } from '$lib/stores/viewport'; import { isCloud } from '$lib/system'; import { goto, beforeNavigate } from '$app/navigation'; - import { base } from '$app/paths'; + import { base, resolve } from '$app/paths'; import { currentPlan, newOrgModal, organization } from '$lib/stores/organization'; import { Click, trackEvent } from '$lib/actions/analytics'; import { ID, type Models, Query } from '@appwrite.io/console'; @@ -171,7 +171,9 @@ if (loadedProjects.projects.length > 4) { projectLinks.push({ name: 'All projects', - href: `${base}/organization-${selectedOrg.$id}` + href: resolve('/(console)/organization-[organization]', { + organization: selectedOrg.$id + }) }); }