Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ const CommunityQuestions = ({ id, productData }: SectionComponentProps) => {
(node: CommunityStatsNode) => node.topicId === forumTopicId
)

const forumUrl = `/questions/topic/${slug}`
// Products can point their community links at another topic's slug (e.g. Replay
// Vision shares Session Replay's forum topic); fall back to their own slug.
const forumTopicSlug = (productData as any)?.forumTopicSlug ?? slug
const forumUrl = `/questions/topic/${forumTopicSlug}`
const approxCount = (n: number) => {
if (n >= 1000) return `With over ${(Math.floor(n / 1000) * 1000).toLocaleString()}`
if (n >= 100) return `With over ${(Math.floor(n / 100) * 100).toLocaleString()}`
Expand Down
3 changes: 3 additions & 0 deletions src/hooks/productData/replay_vision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ export const replayVision = {
// from the same sources.
teamSlug: 'replay',
forumTopicId: 377,
// Forum topic 377 lives under Session Replay's slug – there is no
// /questions/topic/replay-vision page – so community links point there.
forumTopicSlug: sessionReplay.slug,
color: 'yellow',
colorSecondary: '[#B56C00]',
wizardSupport: true,
Expand Down
4 changes: 4 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,10 @@
"source": "/questions/topic/session-recording",
"destination": "/questions/topic/session-replay"
},
{
"source": "/questions/topic/replay-vision",
"destination": "/replay-vision"
},
Comment thread
posthog[bot] marked this conversation as resolved.
{
"source": "/blog/customer-churn-analysis-guide",
"destination": "/blog/churn-rate-vs-retention-rate"
Expand Down
Loading