Issue Bug Closed

#15286Problem with FORM action. Wrong action url

Dmitry Pikhno 12/15/05, 11:39 updated 08/12/06, 14:16

Description

i’m trying to connect form object with some news element
so url of page with form and news looks like index.php?id=X&tx_ttnews[tt_news]=Y
but action in FORM looks like index.php?id=X.

ok. i can fix it via ts:
form = FORM
form.type=index.php?id=X&tx_ttnews[tt_news]=Y

but if realurl is enabled action url still looks like index.php?id=X&tx_ttnews[tt_news]=Y
(of course, realurl is configured for tt_news)

so i see 2 problems:
1) FORM doesn’t include automatically GET params in action url
suggestion: lets add some flags (string or int).
smth like this:
form.includeAction = tt_news[tt_news], photo, … // include these GETs in action
form.includeAction = 1 // include all GET params in action url
form.excludeAction = ….. ?

2) “type” property doesn’t work properly with realurl – there is no
transformation, if “type” is string var

(issue imported from #M2046)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.