From 1d77f6b36e8d823ace4a745405e89e4d993b3a76 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Mon, 26 Feb 2018 14:33:58 +0000 Subject: [PATCH 1/3] Backport of 68d374 --- code/model/MultiFormStep.php | 8 +++++++- templates/Includes/MultiFormProgressList.ss | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/model/MultiFormStep.php b/code/model/MultiFormStep.php index 49ebe6d..b9c910f 100644 --- a/code/model/MultiFormStep.php +++ b/code/model/MultiFormStep.php @@ -141,7 +141,13 @@ class MultiFormStep extends DataObject { */ public function Link() { $form = $this->form; - return Controller::join_links($form->getDisplayLink(), "?{$form->config()->get_var}={$this->Session()->Hash}"); + return Controller::join_links( + $form->getDisplayLink(), + '?' . http_build_query(array( + $form->getGetVar() => $this->Session()->Hash, + 'StepID' => $this->ID, + )) + ); } /** diff --git a/templates/Includes/MultiFormProgressList.ss b/templates/Includes/MultiFormProgressList.ss index 59a420d..441cca5 100644 --- a/templates/Includes/MultiFormProgressList.ss +++ b/templates/Includes/MultiFormProgressList.ss @@ -1,7 +1,7 @@