mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: uri encode forum title (#51625)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user