Dear friends,
I've prepared a simple visform form to be embedded from another domain as iframe.
The form itself is setup up with a response text (no redirect URL) and works as expected if used directly.
Embedded into an iframe it behaves different and is not redirecting to the response message page but returns to the form itself.
Also, any URL parameters of the original request get lost, which doesn happen if used direclty.)
Details:
Joomla URI with form:
example.com/en/formembed/
Works:
Direct access to
example.com/en/formembed/
Click Submit
-> POST to
example.com/en/formembed/?task=visforms.send&id=123
(POST data includes the original URL GET paramters, if any)
HTTP response includes:
Location: /
en/formembed/message
(plus original URL GET paramters, if any)
Result message is displayed as expected.
Not working:
Embed form page URI as above on some other domain (https also)
<iframe src="
example.com/en/formembed/
" ... />
Click Submit
-> POST to
example.com/en/formembed/?task=visforms.send&id=123
(POST data includes the original URL GET paramters, if any)
HTTP response includes:
Location:
/en/formembed
(also, original URL GET parameters, if any, missing)
POST headers are identical in both cases
(I also tried to reduce the initial form page by providing a reduced Joomla template variant with every html element but the form/joomla-component removed via Joomla's ?tmpl=plain feature)
I have absolutely no further ideas why it does behave different.
Any hint appreciated!