Skip to content

Commit

Permalink
A4A: Add "wp-admin-url" query parameter to dashboard link. (#36994)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller authored Apr 22, 2024
1 parent fa1eb0d commit 73b9847
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: added
Comment: Added additional query parameter when redirecting to A4A dashboard.


Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import styles from './styles.module.scss';
*/
function SiteConnectedContent() {
const navigateToDashboard = useCallback( () => {
window.location.href = 'https://agencies.automattic.com?source=client-plugin';
const currentUrl = encodeURIComponent( window.location.href );
window.location.href = `https://agencies.automattic.com?source=client-plugin&wp-admin-url=${ currentUrl }`;
}, [] );

return (
Expand Down

0 comments on commit 73b9847

Please sign in to comment.