I have a page "q=content/mypage"
When i send this page by email it's ok.

But i have another webform page. Which shows the results of the queries.
"q=content/results&first=mary&second=mark"
When i try to send this page by email, this module tries to send
this page "q=content/results"

The results page without the arguments doesn't make sense for the email receiver.
The page is whole different when "first" and "second" arguments are set.

I suppose this is a bug.
I would be happy if you would inform us.
Thank you.

Comments

trante’s picture

Is it possible to fix this?

trante’s picture

Any comments please?

trante’s picture

Do you plan to fix this error ?

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

I think this is now fixed (by the patch provided in #1322222: Problem with URL parameters in D7). Can you please try the latest dev and check this?

trante’s picture

I installed latest dev version.
updated database, cleared cache, run a cron,
but unfortunately nothing changed.
Still page arguments are not taken into account.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active

Thanks for letting me know.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

I just tested this with plain webform, and I couldn't see any filters. The only URL arguments were for sorting the results table, and when sending that by e-mail, the contents of the e-mail were the expected ones.

Using exposed Views filters also worked fine when sending by email.

How did you build that results page?

jcnventura’s picture

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

trante’s picture

In my webform's form settings page (for example node/163/webform/configure)

I select "Custom URL" which is: content/my-results-page?from=%value[from]&to=%value[to]

"my-results-page" is a php file which takes the form value with: $_GET['to'] and $_GET['from']

Then the page parses some data and show results.
So my page becomes as "content/my-results-page?from=alaska&to=denver"

When I try to send page with email, only "content/my-results-page" part is added to email link. Arguments don't come to URL.

trante’s picture

I also uninstalled print module and installed "7.x-1.1" version. Run an update and cron.
Tried to send form results with email.
But still the same error occurs..

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active
lukus’s picture

I've experienced this bug - but discovered it from a different angle .. I'd opened a separate issue, and have now marked that as a duplicate. Please reopen http://drupal.org/node/1665008 if necessary.

The FAQ entry describing how to email a PDF using print_pdf_generate_path() is working well, unless there are URL parameters in the path.

Is this expected / intended behaviour? I've found it possible to generate downloadable PDFs using the same path (including the parameters), from the PRINT_PATH defined in print_menu().

Thanks for a really useful module.

Any advice greatly appreciated.

Luke

lukus’s picture

I think the problem might be related to the print_controller() function in print.pages.inc - it seems that the $path is dissected quite heavily and the arguments are lost before _print_generate_node() is called.

jcnventura’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.