From 3e2452b10fcb909d88d71d2d7466bc96765f2cc2 Mon Sep 17 00:00:00 2001 From: Johannes <72809645+jobenjada@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:30:15 -0600 Subject: [PATCH] fix: seo issues to improve site health (#1864) --- .../app/docs/api/client/actions/page.mdx | 5 ++--- .../components/shared/MetaInformation.tsx | 5 ++++- .../inaugural-batch-github-accelerator/index.mdx | 13 +++++++------ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/apps/formbricks-com/app/docs/api/client/actions/page.mdx b/apps/formbricks-com/app/docs/api/client/actions/page.mdx index 1fcd75c1c9..0156f7e32b 100644 --- a/apps/formbricks-com/app/docs/api/client/actions/page.mdx +++ b/apps/formbricks-com/app/docs/api/client/actions/page.mdx @@ -1,7 +1,7 @@ import { Fence } from "@/components/shared/Fence"; export const metadata = { - title: "Formbricks Responses API Documentation - Manage Your Survey Data Seamlessly", + title: "Formbricks Actions API Documentation - Manage Your Survey Data Seamlessly", description: "Unlock the full potential of Formbricks' Client Actions API. Create Actions right from the API.", }; @@ -13,8 +13,8 @@ export const metadata = { The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information. This API can be used to: -- [Add Action for User](#add-action-for-user) +- [Add Action for User](#add-action-for-user) --- @@ -85,4 +85,3 @@ Adds an Actions for a given User by their User ID --- - diff --git a/apps/formbricks-com/components/shared/MetaInformation.tsx b/apps/formbricks-com/components/shared/MetaInformation.tsx index 17e329135c..5fc1910b43 100644 --- a/apps/formbricks-com/components/shared/MetaInformation.tsx +++ b/apps/formbricks-com/components/shared/MetaInformation.tsx @@ -1,4 +1,5 @@ import Head from "next/head"; +import { useRouter } from "next/router"; interface Props { title: string; @@ -19,8 +20,10 @@ export default function MetaInformation({ section, tags, }: Props) { + const router = useRouter(); const pageTitle = `${title}`; const BASE_URL = `https://${process.env.VERCEL_URL}`; + const canonicalLink = `${BASE_URL}${router.asPath}`; return (