From 7ebd573b1d15bbb0808025eb80a88f873089930a Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Thu, 18 Apr 2024 16:03:56 -0600 Subject: [PATCH] A4A: Include "source" parameter when redirecting to the agencies dashboard (#36979) --- .../changelog/add-source-param-to-a4a-dashboard-url | 5 +++++ .../src/js/components/connected-card/index.jsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 projects/plugins/automattic-for-agencies-client/changelog/add-source-param-to-a4a-dashboard-url diff --git a/projects/plugins/automattic-for-agencies-client/changelog/add-source-param-to-a4a-dashboard-url b/projects/plugins/automattic-for-agencies-client/changelog/add-source-param-to-a4a-dashboard-url new file mode 100644 index 0000000000000..6643e2b4f8782 --- /dev/null +++ b/projects/plugins/automattic-for-agencies-client/changelog/add-source-param-to-a4a-dashboard-url @@ -0,0 +1,5 @@ +Significance: patch +Type: added +Comment: Tiny change: added query string value to URL. + + diff --git a/projects/plugins/automattic-for-agencies-client/src/js/components/connected-card/index.jsx b/projects/plugins/automattic-for-agencies-client/src/js/components/connected-card/index.jsx index b458466e2f63f..dd5309c47f3c1 100644 --- a/projects/plugins/automattic-for-agencies-client/src/js/components/connected-card/index.jsx +++ b/projects/plugins/automattic-for-agencies-client/src/js/components/connected-card/index.jsx @@ -18,7 +18,7 @@ import styles from './styles.module.scss'; */ function SiteConnectedContent() { const navigateToDashboard = useCallback( () => { - window.location.href = 'https://agencies.automattic.com'; + window.location.href = 'https://agencies.automattic.com?source=client-plugin'; }, [] ); return (