Skip to content

Commit

Permalink
Removed stray use of urlService.utils
Browse files Browse the repository at this point in the history
refs #10773

- All instances of `urlService.utils` were previously migrated to use standalone SDK module `url-utils`
  • Loading branch information
naz committed Jul 8, 2019
1 parent f2ef272 commit bc8f897
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/server/api/v2/utils/serializers/output/utils/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit bc8f897

Please sign in to comment.