Internal links would appear underlined and trailed by [0], but no URLs would be listed at the bottom of the page. This patch fixes that and also uses Drupal's url() to form absolute URLs.

CommentFileSizeAuthor
print-internal-urls.patch396 bytesnjivy

Comments

mattgrayson’s picture

Patch fixes issues described and works perfectly on 4.7 RC3.

robert castelo’s picture

Tested this out and can confirm it works.

Thanks njivy!

dz-1’s picture

I had this same issue whereby my internal links to items like 'node/1234' would not be listed at the bottom in the 'links' section.

I applied the patch above and it worked out great!

grendzy’s picture

Thank you for this patch! I just applied it to the 2006-Nov-13 release, and it worked great. I look forward to seeing this patch committed...

drumax’s picture

I had the same problem. With this patch it works better, but the Links look like this:

Links:
[1] http://www.mydomain.ch/?q=%3Fq%3Dmycontent

I found out that "?q=" and "%3Fq%3D" is the same, but somehow encoded. How can I solve this?

My drupal 4.7 is not in a subdirectory.

srlinuxx’s picture

Does this work for 5.1? If not, how would it differ?

thanks so much.

mercmobily’s picture

Hi,

I can confirm the problem. Is this module actually being maintained?

Merc.

mercmobily’s picture

Hi,

I gather the answer is "no"...
We ended up writing our own "print preview" module!

Merc.

jcnventura’s picture

Status: Needs review » Closed (fixed)

Thanks for giving me pointers in the right direction.

The solution was slightly more complicated, as sometimes internal URLs do not start with / (sometimes they even start with #) but it is now solved in HEAD.