diff --git a/src/XF/Template/Templater.php b/src/XF/Template/Templater.php
index 35c71a3894..dc230ec113 100644
--- a/src/XF/Template/Templater.php
+++ b/src/XF/Template/Templater.php
@@ -1602,10 +1602,14 @@ public function widgetPosition($positionId, array $contextParams = [])
$widgetContainer = $this->app->widget();
$widgets = $widgetContainer->position($positionId, $contextParams);
+ $options = [
+ 'context' => $contextParams
+ ];
+
$output = '';
foreach ($widgets AS $widget)
{
- $output .= $widgetContainer->getCompiledWidget($widget, $contextParams) . "\n";
+ $output .= $widgetContainer->getCompiledWidget($widget, $options) . "\n";
}
return $output;