Skip to content

Commit ec70a9c

Browse files
betodealmeidaclaude
andcommitted
fix(dataset): render default URL description properly in settings
The default URL field description was displaying escaped HTML tags as plain text instead of rendering them. Replaced HTML string with proper React JSX using Typography.Text component to display the example URL path in code format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 51489a7 commit ec70a9c

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎superset-frontend/src/components/Datasource/components/DatasourceEditor/DatasourceEditor.jsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,10 +1019,16 @@ class DatasourceEditor extends PureComponent {
10191019
<Field
10201020
fieldKey="default_endpoint"
10211021
label={t('Default URL')}
1022-
description={t(
1023-
`Default URL to redirect to when accessing from the dataset list page.
1024-
Accepts relative URLs such as <span style=„white-space: nowrap;”>/superset/dashboard/{id}/</span>`,
1025-
)}
1022+
description={
1023+
<>
1024+
{t(
1025+
'Default URL to redirect to when accessing from the dataset list page. Accepts relative URLs such as',
1026+
)}{' '}
1027+
<Typography.Text code>
1028+
/superset/dashboard/{'{id}'}/
1029+
</Typography.Text>
1030+
</>
1031+
}
10261032
control={<TextControl controlId="default_endpoint" />}
10271033
/>
10281034
<Field

0 commit comments

Comments
 (0)