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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1162288_print.pages_.inc_.patch | 853 bytes | denes.szabo |
Comments
Comment #1
denes.szabo commentedI made a patch against the print.page.inc.
Comment #2
jcnventuraUnfortunately, there are many places in the module where the path is analysed.. That's just the first one..
Comment #3
Levure commentedSame bug in 7.x-1.0-alpha2
Is there a workaround ?
Comment #4
lomo commentedI 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
Comment #5
jcnventura@LoMo: did you test the above patch? Did it work?
Comment #6
jcnventuraI 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?
Comment #7
jcnventuraNo further info in more than two weeks. Closing the issue.