diff --git a/src/utils/api-fetch.js b/src/utils/api-fetch.js index f7ff4e25..aee13229 100644 --- a/src/utils/api-fetch.js +++ b/src/utils/api-fetch.js @@ -68,7 +68,7 @@ function apiPathModifierMiddleware( options, next ) { // Insert the API namespace after the first two path segments. options.path = options.path.replace( /^(?\/?(?:[\w.-]+\/){2})/, - `$${ siteApiNamespace[ 0 ] }/` + `$${ siteApiNamespace[ 0 ] }` ); }