Skip to content

Commit

Permalink
Fix: Donor List edit link now supports sub-directory installs (#6999)
Browse files Browse the repository at this point in the history
Shout-out to @Genevieve-K as a co-author!
  • Loading branch information
kjohnson authored Oct 11, 2023
1 parent 6bf8d95 commit 40f737a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Donors/resources/components/DonorsListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ declare global {
apiRoot: string;
forms: Array<{value: string; text: string}>;
table: {columns: Array<object>};
adminUrl: string;
pluginUrl: string;
dissedRecommendations: Array<string>;
};
Expand Down
5 changes: 4 additions & 1 deletion src/Donors/resources/components/DonorsRowActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export function DonorsRowActions({item, setUpdateErrors, parameters}) {
<div className={styles.container}>
<RowAction
className={styles.action}
href={`/wp-admin/edit.php?post_type=give_forms&page=give-donors&view=overview&id=${item.id}`}
href={
window.GiveDonors.adminUrl +
`edit.php?post_type=give_forms&page=give-donors&view=overview&id=${item.id}`
}
displayText={__('Edit', 'give')}
/>
<RowAction
Expand Down

0 comments on commit 40f737a

Please sign in to comment.