diff --git a/src-ts/tools/learn/course-certificate/certificate-view/CertificateView.tsx b/src-ts/tools/learn/course-certificate/certificate-view/CertificateView.tsx index 7e5833a57..448e75d07 100644 --- a/src-ts/tools/learn/course-certificate/certificate-view/CertificateView.tsx +++ b/src-ts/tools/learn/course-certificate/certificate-view/CertificateView.tsx @@ -52,14 +52,18 @@ const CertificateView: FC = (props: CertificateViewProps) ready: courseReady, }: CoursesProviderData = useCourses(props.provider, props.certification) + function getCertTitle(user: string): string { + return `${user} - ${course?.title} Certification` + } + const certUrl: string = getUserCertificateSsr( props.provider, props.certification, props.profile.handle, - `Topcoder Academy Certificate for ${course?.title} for ${props.profile.handle}` + getCertTitle(props.profile.handle), ) - const certificationTitle: string = `${userName || props.profile.handle} - ${course?.title} Certification` + const certificationTitle: string = getCertTitle(userName || props.profile.handle) const { certifications: [completedCertificate],