When a user clicks the "Generate PDF/Latex" links he/she will see a 404 if the site uses language prefixes in the URL (http://foo.bar//node/100) because Drutex uses the drupal_goto() call which only should be used for drupal-pages.

I made a quick hack just to make it work on out site.

CommentFileSizeAuthor
#1 342093-drutex-base_url.diff907 bytesMGN
redir.patch470 bytesjseffel

Comments

MGN’s picture

Status: Active » Needs review
StatusFileSize
new907 bytes

I think drupal_goto() is still the preferred function call - if you look at the function, it ends up calling header(), but should be safer and allows other modules to react to the redirect. None of the modules in the core (and none of the 30+ contrib that I use) call header directly. I think the real issue is in the use of $base_url. The following patch works for me, can you see if it solves the problem for you?

steven jones’s picture

Assigned: Unassigned » steven jones
Status: Needs review » Patch (to be ported)

Committed to 6.x-1.x

steven jones’s picture

Assigned: steven jones » Unassigned
abbasmousavi’s picture

Status: Patch (to be ported) » Closed (fixed)