Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cb90da

Browse files
committed
feature #27104 [DX] Redirect to proper Symfony version documentation (noniagriconomie)
This PR was squashed before being merged into the 4.1-dev branch (closes #27104). Discussion ---------- [DX] Redirect to proper Symfony version documentation | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | Just a small improvement I think this can make some dev target the right documentation instead of reading an other version that the one they are developing on EDIT: I do not know if including the constant directly is the good choice, or it is better to add a global symfony version collector? Commits ------- d611160 [DX] Redirect to proper Symfony version documentation
2 parents 50fd769 + d611160 commit 6cb90da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h1 class="logo">{{ include('@Twig/images/symfony-logo.svg') }} Symfony Exception</h1>
1616

1717
<div class="help-link">
18-
<a href="https://symfony.com/doc">
18+
<a href="https://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}/index.html">
1919
<span class="icon">{{ include('@Twig/images/icon-book.svg') }}</span>
2020
<span class="hidden-xs-down">Symfony</span> Docs
2121
</a>

0 commit comments

Comments
 (0)