[TYPO3-english] RealURL and forms

Michael Cannon michael at typo3vagabond.com
Mon Oct 24 09:11:25 CEST 2011


Sergey,

Have you tried...

config {
absRefPrefix = http://domain.tld
 baseURL = http://domain.tld
prefixLocalAnchors = all
 redirectOldLinksToNew = 1
}

You might need to append a / to absRefPrefix though.

Michael
--
Michael Cannon
The TYPO3 Vagabond
Been there, done that, 25 years of coding
Germany +49 (0)160 574 1973
US +1 617 539 6072
http://typo3vagabond.com





On Sun, Oct 23, 2011 at 7:28 PM, Sergey Alexandrov <serg at alexandrov.us>wrote:

> Guys,
>
> Seriously guys, I believe, I'm missing something with RealURL setup,
> created config for quick_shop, tx_calendar, wt_cart and some other
> extensions the way I want, but still having really huge problem
> with ANY form when RealURL enabled.
>
> Condition: have 2 pages:
>    'Form itself' (id=1146)
>        'Thank you' (id=1147)
>
> 1. Without RealURL form's main stuff:
>
>    form action="index.php?id=1147"  onSubmit="return
> validateForm('mailform','','',**'','')"
>    input type="hidden" name="locationData" value="1146:tt_content:72"
>
>    correctly submits data to class.t3lib_formmail.php, then redirect to
> id=1147 ('Thank you' page)
>
> 2. Enabled RealURL (default autoconfig, added 'fileName' option only, but
> the same w/o it), Cleared cache, reloaded form:
>
>    form action="payform/thank-you.**html"  onSubmit="return
> validateForm('mailform','','',**'','')"
>    input type="hidden" name="locationData" value="1146:tt_content:72"
>
>    page http://domain.tld/payform/**thank-you.html<http://domain.tld/payform/thank-you.html>directly accessible, no problem
>
>    After form submit visitor redirected directly to the
> payform/thank-you.html page, not sending form data to
> class.t3lib_formmail.php first
>
> 3. Disabled caching of the payform.html page. Page's URL:
> http://domain.tld/nc/payform.**html <http://domain.tld/nc/payform.html> -
> the same behavior :(
>
> 4. Additional info, maybe here's some stuff hides
>
> Web->info on the payform page:
> Decode cache:
>    PayForm 1146 nc/payform.html ?id=1146&no_cache=1
>        Thank you 1147 payform/thank-you.html ?id=1147
>
> Encode cache:
>    Payform - all fields are ampty
>    Thank you 1147 _DEFAULT | id=1147 payform/thank-you.html
>
> The same behavior with any form, for example, Quick shop's 'add to cart'
> button directly goes to the shopping cart w/o any data submission to the
> script,
> therefore nothing added to the cart at all.
>
> 5. Tried combinations:
>   config.baseURL=http://domain.**tld/ <http://domain.tld/>
>
>   and
>   config.absRefPrefix = /
>   config.baseURL=http://domain.**tld <http://domain.tld>
>   config.prefixLocalAnchors = all
>
> Nothing helped :(
>
> Anybody experienced similar  behavior? Please help ;)
>
> Thank you in advance,
> Sergey
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list