Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fixes broken links

Copple012585b97654
diff --git a/apps/reference/docs/reference.mdx b/apps/reference/docs/reference.mdx
index 5b6fb671023..5a2e139fc6c 100644
--- a/apps/reference/docs/reference.mdx
+++ b/apps/reference/docs/reference.mdx
@@ -7,6 +7,7 @@ hide_table_of_contents: true
import Link from '@docusaurus/Link'
import ButtonCard from '@site/src/components/ButtonCard'
+import useBaseUrl from '@docusaurus/useBaseUrl'
The Supabase Reference Docs provide technical descriptions of the products and how to use them.
@@ -15,9 +16,9 @@ The Supabase Reference Docs provide technical descriptions of the products and h
{/* Database */}
<div class="col col--6">
<ButtonCard
- icon={"/docs/img/icons/javascript-icon.svg"}
+ icon={useBaseUrl("/img/icons/javascript-icon.svg")}
class="card"
- to="/docs/reference/javascript"
+ to={useBaseUrl("/reference/javascript")
style={{ height: '100%' }}
title="JavaScript"
description="JavaScript and TypeScript documentation."
@@ -27,19 +28,19 @@ The Supabase Reference Docs provide technical descriptions of the products and h
</div>
{/* Auth */}
<div class="col col--6">
- <ButtonCard icon={"/docs/img/icons/dart-icon.svg"} class="card" to="/docs/reference/dart" style={{ height: '100%' }} title="Dart" description="Dart and Flutter documentation.">
+ <ButtonCard icon={useBaseUrl("/img/icons/dart-icon.svg")} class="card" to={useBaseUrl("/reference/dart")} style={{ height: '100%' }} title="Dart" description="Dart and Flutter documentation.">
</ButtonCard>
</div>
{/* Examples - coming soon */}
<div class="col col--6">
- <ButtonCard icon={"/docs/img/icons/cli-icon.svg"} class="card" to="/docs/reference/cli" style={{ height: '100%' }} title="Supabase CLI" description="Manage your Supabase projects.">
+ <ButtonCard icon={useBaseUrl("/img/icons/cli-icon.svg")} class="card" to={useBaseUrl("/reference/cli")} style={{ height: '100%' }} title="Supabase CLI" description="Manage your Supabase projects.">
</ButtonCard>
</div>
{/* CLI */}
<div class="col col--6">
- <ButtonCard icon={"/docs/img/icons/api-icon.svg"} class="card" to="/docs/reference/api" style={{ height: '100%' }} title="Supabase API" description="Manage your Supabase projects.">
+ <ButtonCard icon={useBaseUrl("/img/icons/api-icon.svg")} class="card" to={useBaseUrl("/reference/api")} style={{ height: '100%' }} title="Supabase API" description="Manage your Supabase projects.">
</ButtonCard>
</div>
@@ -58,7 +59,7 @@ The Supabase Reference Docs provide technical descriptions of the products and h
<div class="col col--6">
<Link
class="card"
- to="/docs/reference/auth-helpers"
+ to={useBaseUrl('/reference/auth-helpers')}
style={{ height: '100%' }}
>
<div class="card__body">
@@ -82,7 +83,11 @@ The Supabase Reference Docs provide technical descriptions of the products and h
<div class="row is-multiline">
{/* Examples - coming soon */}
<div class="col col--6">
- <Link class="card" to="/docs/reference/auth" style={{ height: '100%' }}>
+ <Link
+ class="card"
+ to={useBaseUrl('/reference/auth')}
+ style={{ height: '100%' }}
+ >
<div class="card__body">
<h4>Auth Server</h4>
<p>Auth reference.</p>
@@ -93,7 +98,7 @@ The Supabase Reference Docs provide technical descriptions of the products and h
<div class="col col--6">
<Link
class="card"
- to="/docs/reference/storage"
+ to={useBaseUrl('/reference/storage')}
style={{ height: '100%' }}
>
<div class="card__body">
diff --git a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
index 44ab26cce0d..46681d6d06c 100644
--- a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
+++ b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
@@ -63,7 +63,7 @@ const RefHeader = (props) => {
{headerNames[found].icon && (
<div className="custom--main-menu-header__icon">
<img
- src={`/docs/img/icons/${headerNames[found].icon}.svg`}
+ src={`/${baseUrl}/img/icons/${headerNames[found].icon}.svg`}
alt="supabase-logo"
/>
</div>