diff --git a/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php index a4dab4c7d05d..c06ee7a8dd14 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php @@ -54,6 +54,12 @@ public function render($uri, Request $request, array $options = array()) // below instead) $attributes = $reference->attributes; $reference->attributes = array(); + + // Except "_format" attribute + if (isset($attributes['_format'])) { + $reference->attributes['_format'] = $attributes['_format']; + } + $uri = $this->generateFragmentUri($uri, $request); $reference->attributes = array_merge($attributes, $reference->attributes); }