diff --git a/portlets/src/main/webapp/vue-app/rules/components/detail/RuleAnnouncementForm.vue b/portlets/src/main/webapp/vue-app/rules/components/detail/RuleAnnouncementForm.vue
index 6500b22b31..5b7fddece0 100644
--- a/portlets/src/main/webapp/vue-app/rules/components/detail/RuleAnnouncementForm.vue
+++ b/portlets/src/main/webapp/vue-app/rules/components/detail/RuleAnnouncementForm.vue
@@ -185,11 +185,7 @@ export default {
.then(() => {
document.dispatchEvent(new CustomEvent('alert-message-html-confeti', {detail: {
alertType: 'success',
- alertMessage: `
-
- ${this.$t('challenges.announcementCreateSuccess')}
-
- `,
+ alertMessage: this.$t('challenges.announcementCreateSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${this.announcement.activityId}`,
alertLinkText: this.$t('announcement.alert.see'),
alertLinkTarget: '_self',
diff --git a/portlets/src/main/webapp/vue-app/rules/components/drawers/RuleFormDrawer.vue b/portlets/src/main/webapp/vue-app/rules/components/drawers/RuleFormDrawer.vue
index 8a7682dc46..25133c36c7 100644
--- a/portlets/src/main/webapp/vue-app/rules/components/drawers/RuleFormDrawer.vue
+++ b/portlets/src/main/webapp/vue-app/rules/components/drawers/RuleFormDrawer.vue
@@ -616,11 +616,7 @@ export default {
if (this.ruleToSave.publish && rule.activityId) {
document.dispatchEvent(new CustomEvent('alert-message-html', {detail: {
alertType: 'success',
- alertMessage: `
-
- ${this.$t('programs.details.ruleUpdateAndPublishSuccess')}
-
- `,
+ alertMessage: this.$t('programs.details.ruleUpdateAndPublishSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${rule.activityId}`,
alertLinkText: this.$t('rule.alert.see'),
alertLinkTarget: '_self',
@@ -659,11 +655,7 @@ export default {
if (this.ruleToSave.publish && this.originalRule.activityId) {
document.dispatchEvent(new CustomEvent('alert-message-html', {detail: {
alertType: 'success',
- alertMessage: `
-
- ${this.$t('programs.details.ruleCreationAndPublishSuccess')}
-
- `,
+ alertMessage: this.$t('programs.details.ruleCreationAndPublishSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${this.originalRule.activityId}`,
alertLinkText: this.$t('rule.alert.see'),
alertLinkTarget: '_self',