File tree 3 files changed +8
-3
lines changed
apps/web/src/app/examples
packages/react-email/src/app/preview/[...slug]
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-email " : patch
3
+ ---
4
+
5
+ fix email template preview failing with emails having spaces
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ const items = [
102
102
path : "magic-links/jobaccepted-magic-link" ,
103
103
name : "Job Accepted / Magic Link with code" ,
104
104
author : "vonsa" ,
105
- }
106
- ]
105
+ } ,
106
+ ] ;
107
107
108
108
const title = "Examples — React Email" ;
109
109
const description = "Open source templates built with React Email" ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface PreviewParams {
17
17
const Page = async ( { params } : { params : PreviewParams } ) => {
18
18
// will come in here as segments of a relative path to the email
19
19
// ex: ['authentication', 'verify-password.tsx']
20
- const slug = params . slug . join ( '/' ) ;
20
+ const slug = decodeURIComponent ( params . slug . join ( '/' ) ) ;
21
21
const emailsDirMetadata = await getEmailsDirectoryMetadata (
22
22
emailsDirectoryAbsolutePath ,
23
23
) ;
You can’t perform that action at this time.
0 commit comments