From 9826120554e8d51e4ff3adca5202fee2e8a51e80 Mon Sep 17 00:00:00 2001 From: ika12345 <24bcs005@nith.ac.in> Date: Fri, 2 Jan 2026 02:53:36 +0530 Subject: [PATCH 1/9] fix: update Slack invite links to open external URL in new tab --- components/buttons/SlackButton.tsx | 11 +++-------- pages/[lang]/index.tsx | 9 ++++++++- pages/community/index.tsx | 2 +- public/_redirects | 3 ++- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/components/buttons/SlackButton.tsx b/components/buttons/SlackButton.tsx index b69b7b292160..d26715bd4bd3 100644 --- a/components/buttons/SlackButton.tsx +++ b/components/buttons/SlackButton.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType'; - import type { IButtonDefaultProps } from '../../types/components/buttons/types'; import IconSlack from '../icons/Slack'; import Button from './Button'; @@ -10,15 +9,10 @@ interface ISlackButtonProps extends IButtonDefaultProps {} /** * @description The SlackButton component is a button that links to the AsyncAPI Slack channel. - * @param {string} props.text - The text to display on the button. - * @param {string} props.href - The href attribute for the anchor tag. - * @param {string} props.target - The target attribute for the anchor tag. - * @param {ButtonIconPosition} props.iconPosition - The position of the icon in the button. - * @param {string} props.className - The class name to be applied to the button. */ export default function SlackButton({ text = 'Join on Slack', - href = '/slack-invite', + href = 'https://www.asyncapi.com/slack-invite', target = '_blank', iconPosition = ButtonIconPosition.LEFT, className = '' @@ -32,7 +26,8 @@ export default function SlackButton({ target={target} className={className} data-testid='Slack-button' - bgClassName='bg-slack hover:bg-slack-light' + bgClassName='bg-slack hover:bg-slack-light' /> ); } + diff --git a/pages/[lang]/index.tsx b/pages/[lang]/index.tsx index 847a8effbc8d..ed69a4db2b1e 100644 --- a/pages/[lang]/index.tsx +++ b/pages/[lang]/index.tsx @@ -101,8 +101,15 @@ export default function HomePage() { {t('community.slackCTADesc')}
-
+ diff --git a/pages/community/index.tsx b/pages/community/index.tsx index c9334dc5b319..7e1ce53d77ba 100644 --- a/pages/community/index.tsx +++ b/pages/community/index.tsx @@ -176,7 +176,7 @@ export default function CommunityIndexPage() { actively contribute, collaborate, and mentor others on how to build with AsyncAPI." btnText='Join AsyncAPI slack' - link='https://asyncapi.com/slack-invite' + link='https://www.asyncapi.com/slack-invite' className='bg-channelCover' /> diff --git a/public/_redirects b/public/_redirects index 1f7867625326..1969e215b361 100644 --- a/public/_redirects +++ b/public/_redirects @@ -53,7 +53,8 @@ https://www.asyncapi.io/* https://www.asyncapi.com/:splat 301! /asyncapi-react https://asyncapi.github.io/asyncapi-react 301! # Slack -/slack-invite https://join.slack.com/t/asyncapi/shared_invite/zt-3m4pmrguv-SUN9Js4BkQHocIH54F59sA 302! +/slack-invite https://www.asyncapi.com/slack-invite 302! + # Central Maven repository verification /OSSRH-63280 https://github.com/asyncapi/java-asyncapi From 256db668880f96cbb19c3e072de31447dcdb7887 Mon Sep 17 00:00:00 2001 From: ika12345 <24bcs005@nith.ac.in> Date: Fri, 2 Jan 2026 03:38:10 +0530 Subject: [PATCH 2/9] Fix Slack CTA external link target --- pages/[lang]/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/[lang]/index.tsx b/pages/[lang]/index.tsx index ed69a4db2b1e..a3b222697d8f 100644 --- a/pages/[lang]/index.tsx +++ b/pages/[lang]/index.tsx @@ -104,9 +104,9 @@ export default function HomePage() {