fix: uri encode forum title (#51625)

This commit is contained in:
Naomi Carrigan
2023-09-23 02:08:06 -07:00
committed by GitHub
parent cb3c889cbe
commit f773f69bd5
@@ -119,9 +119,11 @@ function createQuestionEpic(action$, state$, { window }) {
const addCodeThree = i18next.t('forum-help.add-code-three');
const altTextMessage = `${whatsHappeningHeading}\n\n${camperCodeHeading}\n\n${warning}\n\n${tooLongOne}\n\n${tooLongTwo}\n\n${tooLongThree}\n\n\`\`\`text\n${addCodeOne}\n${addCodeTwo}\n${addCodeThree}\n\`\`\`\n\n${endingText}`;
const titleText = `${i18next.t(
`intro:${superBlock}.blocks.${block}.title`
)} - ${challengeTitle}`;
const titleText = window.encodeURIComponent(
`${i18next.t(
`intro:${superBlock}.blocks.${block}.title`
)} - ${challengeTitle}`
);
const category = window.encodeURIComponent(
i18next.t('links:help.' + helpCategory || 'Help')