diff --git a/core/server/api/v2/utils/serializers/output/utils/url.js b/core/server/api/v2/utils/serializers/output/utils/url.js index cfb5bc7ac1..04ebb98e8a 100644 --- a/core/server/api/v2/utils/serializers/output/utils/url.js +++ b/core/server/api/v2/utils/serializers/output/utils/url.js @@ -24,11 +24,9 @@ const forPost = (id, attrs, frame) => { */ if (!localUtils.isContentAPI(frame)) { if (attrs.status !== 'published' && attrs.url.match(/\/404\//)) { - attrs.url = urlService - .utils - .urlFor({ - relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/') - }, null, true); + attrs.url = urlUtils.urlFor({ + relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/') + }, null, true); } }