diff --git a/src/Extensions/PageFeedbackControllerExtension.php b/src/Extensions/PageFeedbackControllerExtension.php index 761fae6..173e684 100644 --- a/src/Extensions/PageFeedbackControllerExtension.php +++ b/src/Extensions/PageFeedbackControllerExtension.php @@ -43,6 +43,11 @@ public function getPageFeedbackForm() $form = $formByMode::create($this->owner, __FUNCTION__); + // Optionally enable skiplnks to "drop" users to the correct area in the page + if ($skipLink = $this->owner->config()->get('pagefeedback_skiplink')) { + $form->setFormAction(sprintf('%s#%s', $form->FormAction(), $skipLink)); + } + if ($form->hasExtension(FormSpamProtectionExtension::class) && $enableSpamProtection) { $form->enableSpamProtection(); }