fix: links

This commit is contained in:
Arman committed 2023-08-10 20:24:50 +02:00
1 parent 8b140dfe92
commit 722ba0ca4b
2 files changed
+5 -3

No files matched your search

@@ -6,6 +6,7 @@
import type { Models } from '@appwrite.io/console';
import Alert from '$lib/components/alert.svelte';
import { project } from './store';
import { base } from '$app/paths';
export let isGlobal: boolean;
export let showCreate = false;
@@ -49,7 +50,7 @@
<Alert type="info">
<p class="text">
When there is a naming conflict with a global variable in your <a
href={`/console/project-${$project.$id}/settings/variables`}
href={`${base}/console/project-${$project.$id}/settings/variables`}
title="Project settings"
class="link">
project settings</a> and a function environment variable, the global variable
@@ -31,6 +31,7 @@
import PromoteVariableModal from './promoteVariableModal.svelte';
import CreateVariable from './createVariable.svelte';
import RawVariableEditor from './rawVariableEditor.svelte';
import { base } from '$app/paths';
export let variableList: Models.VariableList;
export let globalVariableList: Models.VariableList | undefined = undefined;
@@ -173,7 +174,7 @@
<p>
Set the environment variables or secret keys that will be passed to your function.
Global variables can be found in <a
href={`/console/project-${$project.$id}/settings/variables`}
href={`${base}/console/project-${$project.$id}/settings/variables`}
title="Project settings"
class="link">
project settings</a
@@ -215,7 +216,7 @@
{/if}
a naming conflict with a global variable. View global variables in
<a
href={`/console/project-${$project.$id}/settings/variables`}
href={`${base}/console/project-${$project.$id}/settings/variables`}
title="Project settings"
class="link">
project settings</a