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 ( {pageTitle} @@ -30,7 +33,7 @@ export default function MetaInformation({ - + diff --git a/apps/formbricks-com/pages/blog/inaugural-batch-github-accelerator/index.mdx b/apps/formbricks-com/pages/blog/inaugural-batch-github-accelerator/index.mdx index 945ca99d80..d68062f1ba 100644 --- a/apps/formbricks-com/pages/blog/inaugural-batch-github-accelerator/index.mdx +++ b/apps/formbricks-com/pages/blog/inaugural-batch-github-accelerator/index.mdx @@ -1,8 +1,9 @@ -import Image from "next/image"; -import LayoutMdx from "@/components/shared/LayoutMdx"; -import TitleImage from "./formbricks-sponsored-by-github-accelerator-2023.webp"; -import NewsletterSignup from "@/components/shared/NewsletterSignup"; import AuthorBox from "@/components/shared/AuthorBox"; +import LayoutMdx from "@/components/shared/LayoutMdx"; +import NewsletterSignup from "@/components/shared/NewsletterSignup"; +import Image from "next/image"; + +import TitleImage from "./formbricks-sponsored-by-github-accelerator-2023.webp"; export const meta = { title: "Formbricks Joins GitHub Accelerator's Inaugural Cohort 💃", @@ -15,14 +16,14 @@ export const meta = { tags: ["GitHub Accelerator", "Open-Source"], }; - + _We're getting ready to take our open-source experience management platform to new heights, thanks to being part of the first-ever GitHub Accelerator program!_ GitHub sponsors Formbricks to join their open-source accelerator program ## Hey there,