From 9fbe8e77ec665817e4d4689628457aebfb997871 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Thu, 5 Sep 2024 13:33:48 +0200 Subject: [PATCH] docs(slug): mention redirects in slug readOnly --- studio/schemas/schemaTypes/slug.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/studio/schemas/schemaTypes/slug.ts b/studio/schemas/schemaTypes/slug.ts index 38ec47744..daa1fc844 100644 --- a/studio/schemas/schemaTypes/slug.ts +++ b/studio/schemas/schemaTypes/slug.ts @@ -56,6 +56,8 @@ function createSlugField(source: string) { /* make slugs read-only after initial publish to avoid breaking shared links + + if new slugs are needed, redirects can be used instead */ return ctx.document !== undefined && isPublished(ctx.document); },