Closed (cannot reproduce)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 13:38 UTC
Updated:
28 May 2012 at 19:25 UTC
Hello,
My website is stored in a subdirectory like this http://www.website/directory/
When i click on the print icon for a user profile i get this url:
http://www.website/directory/print/directory/user/username
The correct url should be
http://www.website/directory/print/user/username
Does someone knows how to correct it ?
Comments
Comment #1
jbfelix commentedThe problem is here on line 746 $path = PRINT_PATH .'/'. $path;
Is there an other variable than $path to get the path without the base_url ?
Comment #2
jcnventuraThat code is perfectly fine.. If you're displaying a user profile, the $path variable there should be 'user/username', and the result of that line would be 'print/user/username'..
Unless of course you called print_insert_link() yourself with the first argument set to 'directory/user/username' in which case you'd get the result you're getting...
Other than that, in my tests I was unable to reproduce your problem, as the links always pointed to 'directory/print/user/username'.
BTW, my test setup always uses sites in a subdirectory, so my tests always cover your case. What I actually never test is sites without a subdirectory.
Comment #3
jcnventuraNo further info in two weeks. Closing the issue.