Skip to content

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

fix: telemetry url asPath

Francesco Sansalvadore285c45683d94
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index b8ebabf1003..0ac7df56c63 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -64,7 +64,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
* Send page telemetry on first page load
*/
if (router.isReady) {
- handlePageTelemetry(router.route)
+ handlePageTelemetry(router.asPath)
}
}, [router.isReady])
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index b784ca48638..2ccb053b3ae 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -37,7 +37,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
* Send page telemetry on first page load
*/
if (router.isReady) {
- handlePageTelemetry(router.route)
+ handlePageTelemetry(router.asPath)
}
}, [router.isReady])
diff --git a/studio/components/ui/PageTelemetry.tsx b/studio/components/ui/PageTelemetry.tsx
index 62f31a0a031..200eff94301 100644
--- a/studio/components/ui/PageTelemetry.tsx
+++ b/studio/components/ui/PageTelemetry.tsx
@@ -27,7 +27,7 @@ const PageTelemetry: FC = ({ children }) => {
* if the route is not ready. Don't need to send it will be picked up by router.event above
*/
if (router.isReady) {
- handlePageTelemetry(router.route)
+ handlePageTelemetry(router.asPath)
}
}, [])