My site is english and french, english is default.

OK from english section node/add/multistepform go to node/add/multistepform
OK from french section node/add/multistepform go to fr/node/add/multistepform

OK from english section node/add/multistepform?destination=A go to node/add/multistepform?redirect=A

WRONG from french section fr/node/add/multistepform?destination=B
BECOMES IMMEDIATELY fr/fr/node/add/multistepform?redirect=B

Comments

ellishettinga’s picture

in multistep.module rule 510

if I replace this:

drupal_goto($_REQUEST['q'], $query);

with something like this (with filters out the language prefix):

$dest_q = $_REQUEST['q'];
if (substr($_REQUEST['q'],0,3) == 'fr/')
{
$dest_q = str_replace('fr/','',$_REQUEST['q']);
}
drupal_goto($dest_q, $query);

The problem is solved.
I know this is not a very good solution but since it is the only item I have this problem with in my multilingual site I am pretty sure it is caused by the multistep module in this area.

I hope this helps?
Let me know if you need additional information about the language configuration

chinita7’s picture

@ellishettinga this works.
It doesn't seem to be the right way to fix it but it was very helpful as I'm not a coder.
Thanks !