I have just discovered a strange thing:
My print url is en/print/en/node/16, generated by display suite+service_links (I tested with the pure print module too, the link inserted into the $links is wrong too, so this is not the ds error). When I enter this page I got 404.

I debugged the code and fund: the language prefix is not handled.

CommentFileSizeAuthor
#1 1162288_print.pages_.inc_.patch853 bytesdenes.szabo

Comments

denes.szabo’s picture

Status: Active » Needs review
StatusFileSize
new853 bytes

I made a patch against the print.page.inc.

jcnventura’s picture

Status: Needs review » Needs work

Unfortunately, there are many places in the module where the path is analysed.. That's just the first one..

Levure’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha2

Same bug in 7.x-1.0-alpha2

Is there a workaround ?

lomo’s picture

Version: 7.x-1.0-alpha2 » 6.x-1.14

I suspect this issue is unresolved in both branches, and will check further (later).

Steps to replicate:
Settings include the: Printer-friendly URLs list box is checked, so "a list of the destination URLs for the page links will be displayed at the bottom of the page."
Pages are translatable and the site is set up multilingual. Ours has domain-based language negotiation, so .com is English and .de is German.

While it *should* be producing internal links using the URL aliases, the HTML version of the page includes the URL alias, e.g. "/about-us", it's creating links to /en/node/55 (example) and the same is true on the German side, e.g. /de/node/56 (or whatever). Since these are bad links, it's doubly an issue.

I've tested this locally with the official (drupal.org) latest stable (6.14) version of the module. The problem is the same as on our live site (where I should say we have a custom-patched version for another issue -- one we probably no longer need to keep).

Cheers,

Lowell

jcnventura’s picture

@LoMo: did you test the above patch? Did it work?

jcnventura’s picture

Status: Needs work » Postponed (maintainer needs more info)

I just tested this and I can't reproduce the original problem at all.. Not in Drupal 6 nor in 7.. My links are always en/print/path and pt-pt/print/path when using English and Portuguese respectively..

@LoMo: About the URL list.. I'd need some help in debugging this. Maybe in the next Frankfurt meetup?

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in more than two weeks. Closing the issue.