Jump to content

Cannot set target for external links in CMS page


Recommended Posts

Hi guys!

 

I am quite new to Prestashop but today I am facing a real strange problem:

 

Whenever I put a link into the content of my CMS page, no matter if done with the "add link" button or manually, the target (should be _blank) is deleted, so if a user will click the link, the page is opened in the same window, which is definitely not what I want.

Tried it with my own template and with the default template, same effect. Actually I can even see it in the backend, when I check the code after saving the content, the target is already removed from the link.

 

I am using the Prestashop version 1.6.0.8

 

Any ideas what I am doing wrong?

 

Greetings

Elby

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 2 months later...
  • 2 weeks later...
  • 3 months later...
  • 9 months later...

 

Hello,

It has been fixed a there is a long time ago 

The best way to fix your problem will be to take the function purifyHTML in this class https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Tools.php#L3245-L3309

Best regards.

 

 

Tested and work like a charm in v1.6.0.8. Thanks Sacha FROMENT

Edited by kckok (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...