Skip to content

Commit be7bb80

Browse files
committed
Encode URI in case of embed origin handling
1 parent 7338ef6 commit be7bb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/common/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function generateMetabaseQuestionURL(sql: string, databaseId: number | null = nu
193193
if (!origin || !isEmbedded) {
194194
return `${getOrigin()}/question#${hash}`;
195195
}
196-
return `${origin}/question?hash=${hash}`;
196+
return `${origin}/question?hash=${encodeURIComponent(hash)}`;
197197
}
198198

199199
function extractLastSQLFromMessages(messages: any[], currentMessageIndex: number): string | null {

0 commit comments

Comments
 (0)