Skip to content

Commit c562f3e

Browse files
Merge pull request #129 from devgateway/task/TCDICORE-522/wordpress-source-url
2 parents 0b14d28 + f5ac94d commit c562f3e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/puny-donuts-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devgateway/dvz-wp-commons": patch
3+
---
4+
5+
Fix custom URL wordpress source

packages/commons/src/Blocks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class BlockEditWithFilters extends ComponentWithSettings {
283283
}
284284
if (wordpressSourceType === 'custom' && wordpressSource) {
285285
const base = wordpressSource.replace(/\/+$/, '');
286-
return fetch(base + '/wp-json' + path).then(r => r.json());
286+
return fetch(base + path).then(r => r.json());
287287
}
288288
return wp.apiFetch({ path });
289289
}

0 commit comments

Comments
 (0)