From 7d682633cfad98064a902957f9a3844c669c6cae Mon Sep 17 00:00:00 2001 From: Fady Attia Date: Wed, 25 Sep 2024 09:07:30 +0200 Subject: [PATCH] feat: adjust the release note query string builder to always point to product tab (#2092) * feat: adjust the release note query string builder to always point to product tab * Create tough-pugs-glow.md * chore: keep logic and remove docs site prefix only --- .changeset/tough-pugs-glow.md | 5 +++++ .../gatsby-theme-docs/src/hooks/use-release-notes-config.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tough-pugs-glow.md diff --git a/.changeset/tough-pugs-glow.md b/.changeset/tough-pugs-glow.md new file mode 100644 index 0000000000..7cfc90b409 --- /dev/null +++ b/.changeset/tough-pugs-glow.md @@ -0,0 +1,5 @@ +--- +"@commercetools-docs/gatsby-theme-docs": patch +--- + +feat: adjust the release note query string builder to always point to product tab diff --git a/packages/gatsby-theme-docs/src/hooks/use-release-notes-config.js b/packages/gatsby-theme-docs/src/hooks/use-release-notes-config.js index 966bf160a3..6c7abd28da 100644 --- a/packages/gatsby-theme-docs/src/hooks/use-release-notes-config.js +++ b/packages/gatsby-theme-docs/src/hooks/use-release-notes-config.js @@ -1,7 +1,7 @@ import { buildReleaseNotesQueryString } from '../utils/release-notes'; import { useSiteData } from './use-site-data'; -const OTHER_GROUP_SITE_PREFIXES = ['/docs']; // let's use pathPrefix to identify websites (works only on prod) +const OTHER_GROUP_SITE_PREFIXES = []; // let's use pathPrefix to identify websites that point to others tab (works only on prod), docs-team asked to point all to product sofar const RELEASE_NOTES_BASE_URL = '/docs/release-notes'; // only prod url const useReleaseNotesConfig = () => {