Skip to content

Commit 41d9715

Browse files
authored
fix: decode of show all url (#329)
1 parent b490a1f commit 41d9715

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/components/src/utils/headless-cms/HeadlessCMSHelper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import format from 'date-fns/format';
2+
import parse from 'html-react-parser';
23
import React from 'react';
34
import type {
45
ArticleType,
@@ -180,7 +181,7 @@ export class HeadlessCMSHelper {
180181
<EventSearchCollection
181182
{...commonCollectionProps}
182183
collection={collection}
183-
showAllUrl={collection.showAllUrl}
184+
showAllUrl={parse(collection.showAllUrl || '').toString()}
184185
/>
185186
);
186187
} else if (isEventSelectionCollection(collection)) {

0 commit comments

Comments
 (0)