Skip to content

Commit c4780a8

Browse files
author
kishansomaiya
committed
fix(admin): URL-encode pad name in Admin Pads Open link (#7865)
1 parent e5c2df1 commit c4780a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

admin/src/pages/PadPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export const PadPage = () => {
410410
</button>
411411
<button
412412
className="pm-btn pm-btn-primary pm-btn--sm"
413-
onClick={() => window.open(`../../p/${pad.padName}`, '_blank')}
413+
onClick={() => window.open(`../../p/${encodeURIComponent(pad.padName)}`, '_blank')}
414414
>
415415
<Eye size={13}/> <Trans i18nKey="admin_pads.open"/>
416416
</button>

0 commit comments

Comments
 (0)