Closed (fixed)
Project:
Availability Calendars
Version:
7.x-4.x-dev
Component:
Booking formlet
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2014 at 16:31 UTC
Updated:
7 Jan 2014 at 17:59 UTC
Jump to comment: Most recent
Comments
Comment #1
fietserwinNot sure that this is an error in this module. I use the url() function (in common.inc) and its help says that non-clean URLs are supported:
How did you specify the "URL to continue the booking" and what does your form tag (in the rendered html) look like? (more specifically, the action and method attributes)
Comment #2
drupixHi,
Thanks for the quick reply.
Effectivelly, I'm not sure that this is an error of your module, but...
I have tried to find the problem by myself, and I saw that the module use the url() function. When the form is displayed, the action looks correct but...
I repeat that with Clean URL's enabled all works fine. Nothing seems strange if I inspect the form with firebug
My site is multi language (en-fr).
I have a Content type "Availability calendar page" with both "Availability Calendar" and "Availability Calendar Booking formlet" fields.
The "URL to continue the booking" is specified as follow (links to capture_1.png)
I have a Webform with neutral language (if possible I don't want a form for each language) and a path set to "booking" and available for All language.
What else...?
You can see this in action here: http://la-pineta.drupal-solutions.ch/?q=en/availability
Thank for the help.
Comment #3
fietserwinIf I change the GET to a POST (in the browser's developer tools), it works. Apparently, the query part is stripped off when a form action is executed via a GET??! (Chrome, FF and IE do so)
If so, I'm afraid I can't do anything to prevent that. You could try adding the q as a form field... (that would be 1 of the better hacks I've seen lately :)
The http spec does not specifically mention this case but says:
Adding another ? is not correct, so this spec does not describe what to do in your case.
Comment #4
drupixOk, I haded q as a form field and it works.
Thanks for the help and information.
Comment #5
drupixComment #6
fietserwinI love it when a plan comes together :)