In print_insert_link(), print_mail_insert_link(), and print_pdf_insert_link() the link to be printed is set to be absolute ('absolute' => TRUE).

This leads to a problem because I have a website that uses both http and https in combination with a static cache (boost). If links are absolute, they are are saved as such in the static cache (i.e. http://example.com/print/1234). But when a visitor uses https, he or she gets the same absolute link with http although it should be https. This could be avoided if links where relative.

Is there a special reason to make links absolute? And would it be possible to add an option to make them relative? It seems the function is not themeable, so the only way I see right now is duplicating the functions and changing them.

Comments

jcnventura’s picture

Issue summary: View changes

The links must be absolute in the PDF and email versions.

Closing the issue, as it is for the Drupal 6 version of the module.

jcnventura’s picture

Status: Active » Closed (won't fix)