diff --git a/packages/server/src/schema/uuid/abstract-uuid/resolvers.ts b/packages/server/src/schema/uuid/abstract-uuid/resolvers.ts index be64d7880..b321b6a58 100644 --- a/packages/server/src/schema/uuid/abstract-uuid/resolvers.ts +++ b/packages/server/src/schema/uuid/abstract-uuid/resolvers.ts @@ -379,7 +379,15 @@ async function resolveUuidFromDatabase( ) : null const subjectName = subject ? toSlug(subject.name) : 'serlo' - const slugTitle = toSlug(baseUuid.entityTitle ?? baseUuid.entityType) + + let fallbackTitle: string = baseUuid.entityType + if (baseUuid.entityInstance === 'de') { + if (fallbackTitle === 'text-exercise') fallbackTitle = 'aufgabe' + else if (fallbackTitle === 'text-exercise-group') fallbackTitle = 'aufgabengruppe' + } + + const slugTitle = toSlug(baseUuid.entityTitle ?? fallbackTitle) + const entity = { ...base, instance: baseUuid.entityInstance,