Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 !