Skip to content

Commit 9b9479d

Browse files
committed
add: prepare middleware for new seo changes
1 parent 56ecf64 commit 9b9479d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: strapi/src/middlewares/deepPopulate.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ const getDeepPopulate = (uid: UID.Schema, opts: Options = {}) => {
8181

8282
export default (config, { strapi }: { strapi: Core.Strapi }) => {
8383
return async (ctx, next) => {
84-
if (ctx.request.url.startsWith('/api/') && ctx.request.method === 'GET' && !ctx.query.populate && !ctx.request.url.includes('/api/users')) {
84+
if (ctx.request.url.startsWith('/api/') && ctx.request.method === 'GET' && !ctx.query.populate && !ctx.request.url.includes('/api/users') && !ctx.request.url.includes('/api/seo')
85+
) {
8586
strapi.log.info('Using custom Dynamic-Zone population Middleware...');
8687

8788
const contentType = extractPathSegment(ctx.request.url);

0 commit comments

Comments
 (0)