diff --git a/application/src/main/java/run/halo/app/infra/SchemeInitializer.java b/application/src/main/java/run/halo/app/infra/SchemeInitializer.java index eca97c4cda..fbc933e213 100644 --- a/application/src/main/java/run/halo/app/infra/SchemeInitializer.java +++ b/application/src/main/java/run/halo/app/infra/SchemeInitializer.java @@ -490,7 +490,7 @@ public void onApplicationEvent(@NonNull ApplicationContextInitializedEvent event ); is.add(new IndexSpec() .setName("spec.slug") - .setUnique(true) + .setUnique(false) .setIndexFunc( simpleAttribute(SinglePage.class, page -> Optional.ofNullable(page.getSpec()) .map(SinglePage.SinglePageSpec::getSlug)