Skip to content

Commit

Permalink
Make slug of single page be not unique (#6545)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind cleanup
/area core
/milestone 2.19.0

#### What this PR does / why we need it:

For backward compatibility, the slug of single page should not be unique.

BTW, the problem was introduced by <#6540>.

#### Does this PR introduce a user-facing change?

```release-note
None
```
  • Loading branch information
JohnNiang authored Aug 29, 2024
1 parent 19049c1 commit e476dda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e476dda

Please sign in to comment.