mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Redirecting to the form success message location for longer pages
This commit is contained in:
parent
e3c7673af9
commit
7a76626cd2
@ -431,6 +431,8 @@ SQL;
|
|||||||
|
|
||||||
class UserDefinedForm_Controller extends Page_Controller {
|
class UserDefinedForm_Controller extends Page_Controller {
|
||||||
|
|
||||||
|
private static $finished_anchor = '#uff';
|
||||||
|
|
||||||
private static $allowed_actions = array(
|
private static $allowed_actions = array(
|
||||||
'index',
|
'index',
|
||||||
'ping',
|
'ping',
|
||||||
@ -1068,7 +1070,7 @@ JS
|
|||||||
Session::set('userformssubmission'. $this->ID, $submittedForm->ID);
|
Session::set('userformssubmission'. $this->ID, $submittedForm->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->redirect($this->Link('finished') . $referrer);
|
return $this->redirect($this->Link('finished') . $referrer . $this->config()->finished_anchor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1 +1,3 @@
|
|||||||
|
<div id="uff">
|
||||||
$OnCompleteMessage
|
$OnCompleteMessage
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user