Jump to content

relative / absolute links issue at uploads


Studio1one

Recommended Posts

On two of our stores we have an issue when it comes to the upload images links.
We notice this now when we installed SSL, when we upload images thru the tinymce the links become absolute and not relative.
Anyone that knows where I need to change to fix this issue?
We are using Prestashop 1.6.1.4 and 1.6.1.3, and the themes are LEOtheme.

 

I would be very happy to get some tips or links how to fix this issue.

 

//Patrik

Link to comment
Share on other sites

hello

if links are absolute, you need to re-save them to make it work as non-absolute urls

there is no other way because these datas are stored in database

Hi Vekia, but then I do not understand how the SSL gonna work correctly?

Because then I need to change on every single image I have uploaded and even on all product pages.

I Upload images thru the tinymce / filemanager, and if that is how prestashop is built, then I think its rather silly because when we install SSL it warns about this.

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

@Studio!one is referring to images uploaded using tinymce, therefore they are not covered by enabling and forcing SSL every where.

 

The solution is to edit TinyMce configuration in js/admin/tinymce.inc.js and follow this instructions https://www.tinymce.com/docs/get-started/get-support/

 

The code should be like:

relative_urls : true,
convert_urls: true,
document_base_url : "https://www.your-domain.com/",
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...