write links that work in the texts of the Localization module

Endika Carrasco asked on August 18, 2021 11:42

I'm using html in the "Translation" fields of the Localization module, links specifically ... but the links don't work when browsing the page.

any ideas?

Recent Answers


Dmitry Bastron answered on August 19, 2021 08:19

Hi Endika,

How do you withdraw Localization strings in your view? By default it will be encoded if I remember correctly. That's why links are not clickable. To prevent this from happening you should use Html.Raw(..) helper.

0 votesVote for this answer Mark as a Correct answer

Endika Carrasco answered on August 19, 2021 09:38 (last edited on August 19, 2021 09:39)

Thanks Dimitri,

link HTML appears in rendered HTML ... but not clickable ... (image)

Localization text + rendericed HTML IMAGE:

Localization text + rendericed HTML IMAGE

https://ibb.co/Wkh9p1m

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on August 20, 2021 06:30

Hi Endika,

Could you post the code that displays this link, please? As well as HTML markup that is generated for this link. You can view it from inspect, or by pressing ctrl+U in Google chrome.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.