Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(docs): make onboarding doc links absolute (#57825)

Vincent (Wen Yu) Ge7a1772d2f997
diff --git a/docs/onboarding/error-tracking/android.tsx b/docs/onboarding/error-tracking/android.tsx
index c088f80d1530..88147aec48b4 100644
--- a/docs/onboarding/error-tracking/android.tsx
+++ b/docs/onboarding/error-tracking/android.tsx
@@ -55,7 +55,7 @@ export const getAndroidSteps = (ctx: OnboardingComponentsContext): StepDefinitio
<CalloutBox type="fyi" title="Planned features">
<Markdown>
{dedent`
- We currently don't support [source code context](/docs/error-tracking/stack-traces.md) associated with an exception.
+ We currently don't support [source code context](https://posthog.com/docs/error-tracking/stack-traces) associated with an exception.
These features will be added in a future release.
`}
diff --git a/docs/onboarding/error-tracking/api.tsx b/docs/onboarding/error-tracking/api.tsx
index f98fc944f8fd..514d15b5a2c5 100644
--- a/docs/onboarding/error-tracking/api.tsx
+++ b/docs/onboarding/error-tracking/api.tsx
@@ -19,7 +19,7 @@ export const getAPISteps = (ctx: OnboardingComponentsContext): StepDefinition[]
If a platform you use is not supported by error tracking, we recommend that you reach out to us or contribute to our open-source SDKs before attempting to manually send exceptions.
- If you'd rather roll your own exception capturing (or if you're using a platform we don't have an SDK for), you can use the [capture API](/docs/api/capture.md) or \`capture\` method to capture an \`$exception\` event with the following properties:
+ If you'd rather roll your own exception capturing (or if you're using a platform we don't have an SDK for), you can use the [capture API](https://posthog.com/docs/api/capture) or \`capture\` method to capture an \`$exception\` event with the following properties:
`}
</Markdown>
<div className="LemonMarkdown">
diff --git a/docs/onboarding/error-tracking/flutter.tsx b/docs/onboarding/error-tracking/flutter.tsx
index abbb3dc97b7a..6a183203f47f 100644
--- a/docs/onboarding/error-tracking/flutter.tsx
+++ b/docs/onboarding/error-tracking/flutter.tsx
@@ -170,11 +170,11 @@ export const getFlutterSteps = (ctx: OnboardingComponentsContext): StepDefinitio
We currently don't support the following features:
- No de-obfuscating stacktraces from obfuscated builds ([\\--obfuscate](https://docs.flutter.dev/deployment/obfuscate) and [\\--split-debug-info](https://docs.flutter.dev/deployment/obfuscate)) for Dart code
- - No [Source code context](/docs/error-tracking/stack-traces.md) associated with an exception (native Android Java/Kotlin errors and Flutter web only)
+ - No [Source code context](https://posthog.com/docs/error-tracking/stack-traces) associated with an exception (native Android Java/Kotlin errors and Flutter web only)
- No native C/C++ exception capture on Android (Java/Kotlin only)
- No background isolate error capture
- For symbolicated stack traces on native platforms, see the [Flutter debug symbols guide](/docs/error-tracking/upload-source-maps/flutter).
+ For symbolicated stack traces on native platforms, see the [Flutter debug symbols guide](https://posthog.com/docs/error-tracking/upload-source-maps/flutter).
These features will be added in future releases. We recommend you stay
up to date with the latest version of the PostHog Flutter SDK.
diff --git a/docs/onboarding/error-tracking/nextjs.tsx b/docs/onboarding/error-tracking/nextjs.tsx
index 16397bf3cd86..d99d51c4a726 100644
--- a/docs/onboarding/error-tracking/nextjs.tsx
+++ b/docs/onboarding/error-tracking/nextjs.tsx
@@ -186,7 +186,7 @@ export const getNextJSSteps = (ctx: OnboardingComponentsContext): StepDefinition
<>
<Markdown>
{dedent`
- Next.js enables you to both server-side render pages and add server-side functionality. To integrate PostHog into your Next.js app on the server-side, you can use the [Node SDK](/docs/libraries/node.md).
+ Next.js enables you to both server-side render pages and add server-side functionality. To integrate PostHog into your Next.js app on the server-side, you can use the [Node SDK](https://posthog.com/docs/libraries/node).
First, install the \`posthog-node\` library:
`}
@@ -285,7 +285,7 @@ export const getNextJSSteps = (ctx: OnboardingComponentsContext): StepDefinition
Importantly, you need to:
- 1. Set up a \`posthog-node\` client in your server-side code. See our doc on [setting up Next.js server-side analytics](/docs/libraries/next-js#server-side-analytics.md) for more.
+ 1. Set up a \`posthog-node\` client in your server-side code. See our doc on [setting up Next.js server-side analytics](https://posthog.com/docs/libraries/next-js#server-side-analytics) for more.
2. Check the request is running in the \`nodejs\` runtime to ensure PostHog works. You can call \`posthog.debug()\` to get verbose logging.
3. Get the \`distinct_id\` from the cookie to connect the error to a specific user.
@@ -332,7 +332,7 @@ export const getNextJSSteps = (ctx: OnboardingComponentsContext): StepDefinition
/>
<Markdown>
{dedent`
- You can find a full example of both this and client-side error tracking in our [Next.js error monitoring tutorial](/tutorials/nextjs-error-monitoring.md).
+ You can find a full example of both this and client-side error tracking in our [Next.js error monitoring tutorial](https://posthog.com/tutorials/nextjs-error-monitoring).
`}
</Markdown>
</>
diff --git a/docs/onboarding/error-tracking/python.tsx b/docs/onboarding/error-tracking/python.tsx
index f3dd872a09e2..85e5d5c405a1 100644
--- a/docs/onboarding/error-tracking/python.tsx
+++ b/docs/onboarding/error-tracking/python.tsx
@@ -45,9 +45,9 @@ export const getPythonSteps = (ctx: OnboardingComponentsContext): StepDefinition
/>
<Markdown>
{dedent`
- We recommend setting up and using [contexts](/docs/libraries/python#contexts) so that exceptions automatically include distinct IDs, session IDs, and other properties you can set up with tags.
+ We recommend setting up and using [contexts](https://posthog.com/docs/libraries/python#contexts) so that exceptions automatically include distinct IDs, session IDs, and other properties you can set up with tags.
- You can also enable [code variables capture](/docs/error-tracking/code-variables/python) to automatically capture the state of local variables when exceptions occur, giving you a debugger-like view of your application.
+ You can also enable [code variables capture](https://posthog.com/docs/error-tracking/code-variables/python) to automatically capture the state of local variables when exceptions occur, giving you a debugger-like view of your application.
`}
</Markdown>
</>
@@ -77,7 +77,7 @@ export const getPythonSteps = (ctx: OnboardingComponentsContext): StepDefinition
/>
<Markdown>
{dedent`
- You can find a full example of all of this in our [Python (and Flask) error tracking tutorial](/tutorials/python-error-tracking).
+ You can find a full example of all of this in our [Python (and Flask) error tracking tutorial](https://posthog.com/tutorials/python-error-tracking).
`}
</Markdown>
</>
@@ -119,7 +119,7 @@ export const getPythonSteps = (ctx: OnboardingComponentsContext): StepDefinition
<Tab.Panel>
<Markdown>
{dedent`
- The Python SDK provides a Django middleware that automatically wraps all requests with a [context](/docs/libraries/python#contexts). Add the middleware to your Django settings:
+ The Python SDK provides a Django middleware that automatically wraps all requests with a [context](https://posthog.com/docs/libraries/python#contexts). Add the middleware to your Django settings:
`}
</Markdown>
<CodeBlock
@@ -139,7 +139,7 @@ export const getPythonSteps = (ctx: OnboardingComponentsContext): StepDefinition
/>
<Markdown>
{dedent`
- By default, the middleware captures exceptions and sends them to PostHog. Disable with \`POSTHOG_MW_CAPTURE_EXCEPTIONS = False\`. Use \`POSTHOG_MW_EXTRA_TAGS\`, \`POSTHOG_MW_REQUEST_FILTER\`, and \`POSTHOG_MW_TAG_MAP\` to customize. See the [Django integration docs](/docs/libraries/django) for full configuration.
+ By default, the middleware captures exceptions and sends them to PostHog. Disable with \`POSTHOG_MW_CAPTURE_EXCEPTIONS = False\`. Use \`POSTHOG_MW_EXTRA_TAGS\`, \`POSTHOG_MW_REQUEST_FILTER\`, and \`POSTHOG_MW_TAG_MAP\` to customize. See the [Django integration docs](https://posthog.com/docs/libraries/django) for full configuration.
`}
</Markdown>
</Tab.Panel>
diff --git a/docs/onboarding/logs/go.tsx b/docs/onboarding/logs/go.tsx
index ded627544fb4..24dd31085ec3 100644
--- a/docs/onboarding/logs/go.tsx
+++ b/docs/onboarding/logs/go.tsx
@@ -134,8 +134,8 @@ export const getGoSteps = (ctx: OnboardingComponentsContext): StepDefinition[] =
]}
/>
<Markdown>
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter by
- service name, severity, or any attribute you attach.
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs)
+ to search and filter by service name, severity, or any attribute you attach.
</Markdown>
</>
),
diff --git a/docs/onboarding/logs/java.tsx b/docs/onboarding/logs/java.tsx
index 07f61db4721c..00822375e5e2 100644
--- a/docs/onboarding/logs/java.tsx
+++ b/docs/onboarding/logs/java.tsx
@@ -146,8 +146,8 @@ export const getJavaSteps = (ctx: OnboardingComponentsContext): StepDefinition[]
]}
/>
<Markdown>
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter by
- service name, severity, or any attribute you attach.
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs)
+ to search and filter by service name, severity, or any attribute you attach.
</Markdown>
</>
),
diff --git a/docs/onboarding/logs/nextjs.tsx b/docs/onboarding/logs/nextjs.tsx
index bef726b8311c..5ecabe98b9e6 100644
--- a/docs/onboarding/logs/nextjs.tsx
+++ b/docs/onboarding/logs/nextjs.tsx
@@ -152,8 +152,8 @@ export const getNextJSSteps = (ctx: OnboardingComponentsContext): StepDefinition
]}
/>
<Markdown>
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter by
- service name, severity, or any attribute you attach.
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs)
+ to search and filter by service name, severity, or any attribute you attach.
</Markdown>
</>
),
diff --git a/docs/onboarding/logs/nodejs.tsx b/docs/onboarding/logs/nodejs.tsx
index 05249ff346a4..fabb2ec851af 100644
--- a/docs/onboarding/logs/nodejs.tsx
+++ b/docs/onboarding/logs/nodejs.tsx
@@ -124,7 +124,7 @@ export const getNodeJSSteps = (ctx: OnboardingComponentsContext): StepDefinition
/>
<Markdown>
{dedent`
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs) to search and filter
by service name, severity, or any attribute you attach.
`}
</Markdown>
diff --git a/docs/onboarding/logs/opentelemetry.tsx b/docs/onboarding/logs/opentelemetry.tsx
index 89483cecc280..54247c190774 100644
--- a/docs/onboarding/logs/opentelemetry.tsx
+++ b/docs/onboarding/logs/opentelemetry.tsx
@@ -65,7 +65,7 @@ export const getOpenTelemetrySteps = (ctx: OnboardingComponentsContext): StepDef
The endpoint accepts OTLP over HTTP in both \`application/x-protobuf\` and \`application/json\`
formats. gRPC is not supported, use the HTTP transport protocol instead.
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs) to search and filter
by service name, severity, or any attribute you attach.
`}
</Markdown>
diff --git a/docs/onboarding/logs/python.tsx b/docs/onboarding/logs/python.tsx
index 4dfbd005e44b..df7daf357fad 100644
--- a/docs/onboarding/logs/python.tsx
+++ b/docs/onboarding/logs/python.tsx
@@ -96,8 +96,8 @@ export const getPythonSteps = (ctx: OnboardingComponentsContext): StepDefinition
]}
/>
<Markdown>
- Logs appear in PostHog within a few seconds. Use the [Logs page](/logs) to search and filter by
- service name, severity, or any attribute you attach.
+ Logs appear in PostHog within a few seconds. Use the [Logs page](https://app.posthog.com/logs)
+ to search and filter by service name, severity, or any attribute you attach.
</Markdown>
</>
),
diff --git a/docs/onboarding/session-replay/_snippets/session-replay-final-steps.tsx b/docs/onboarding/session-replay/_snippets/session-replay-final-steps.tsx
index 6a29669534f0..71189033a0dd 100644
--- a/docs/onboarding/session-replay/_snippets/session-replay-final-steps.tsx
+++ b/docs/onboarding/session-replay/_snippets/session-replay-final-steps.tsx
@@ -8,7 +8,7 @@ export const SessionReplayFinalSteps = (): React.ReactElement => {
between pages, click buttons, and fill out forms to capture meaningful interactions.
</p>
<p>
- <a href="/replay/home">Watch your first recording →</a>
+ <a href="https://app.posthog.com/replay/home">Watch your first recording →</a>
</p>
</>
)
diff --git a/docs/onboarding/surveys/_snippets/surveys-final-steps.tsx b/docs/onboarding/surveys/_snippets/surveys-final-steps.tsx
index 88f896ac5746..2c34fa05235d 100644
--- a/docs/onboarding/surveys/_snippets/surveys-final-steps.tsx
+++ b/docs/onboarding/surveys/_snippets/surveys-final-steps.tsx
@@ -11,11 +11,11 @@ export const SurveysFinalSteps = (): JSX.Element => {
| Resource | Description |
|----------|-------------|
- | [Creating surveys](/docs/surveys/creating-surveys) | Learn how to build and customize your surveys |
- | [Targeting surveys](/docs/surveys/targeting) | Show surveys to specific users based on properties, events, or feature flags |
- | [How to create custom surveys](/tutorials/survey) | Build advanced survey experiences with custom code |
- | [Framework guides](/docs/surveys/tutorials#framework-guides) | Setup guides for React, Next.js, Vue, and other frameworks |
- | [More tutorials](/docs/surveys/tutorials) | Other real-world examples and use cases |
+ | [Creating surveys](https://posthog.com/docs/surveys/creating-surveys) | Learn how to build and customize your surveys |
+ | [Targeting surveys](https://posthog.com/docs/surveys/targeting) | Show surveys to specific users based on properties, events, or feature flags |
+ | [How to create custom surveys](https://posthog.com/tutorials/survey) | Build advanced survey experiences with custom code |
+ | [Framework guides](https://posthog.com/docs/surveys/tutorials#framework-guides) | Setup guides for React, Next.js, Vue, and other frameworks |
+ | [More tutorials](https://posthog.com/docs/surveys/tutorials) | Other real-world examples and use cases |
You should also [identify](https://posthog.com/docs/product-analytics/identify) users and [capture events](https://posthog.com/docs/product-analytics/capture-events) with PostHog to control who and when to show surveys to your users.
diff --git a/docs/onboarding/surveys/flutter.tsx b/docs/onboarding/surveys/flutter.tsx
index 79e53b435882..300e50492e4e 100644
--- a/docs/onboarding/surveys/flutter.tsx
+++ b/docs/onboarding/surveys/flutter.tsx
@@ -58,8 +58,9 @@ function getSurveysFlutterSteps(ctx: OnboardingComponentsContext): StepDefinitio
]}
/>
<Markdown>
- If you&apos;re using go_router, check [this page](/docs/surveys/installation/flutter) to learn
- how to set up the PosthogObserver.
+ {dedent`
+ If you're using go_router, check [this page](https://posthog.com/docs/surveys/installation/flutter) to learn how to set up the PosthogObserver.
+ `}
</Markdown>
</>
),