Active
Project:
Multistep (D7)
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2011 at 12:06 UTC
Updated:
18 Oct 2011 at 04:47 UTC
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
Comment #1
ellishettinga commentedin 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
Comment #2
chinita7 commented@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 !