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

Skip to content

[Routing] Improving language, shortening twig code #19229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

ThomasLandauer
Copy link
Contributor

Page: https://symfony.com/doc/6.3/routing.html#getting-the-route-name-and-parameters

Page: https://symfony.com/doc/6.3/routing.html#getting-the-route-name-and-parameters

* The first sentence wasn't english.
* Defining a  Twig variable for this is quite useless nowadays - this looks like a leftover from previous versions where the syntax was lengthy: https://symfony.com/doc/5.4/routing.html#getting-the-route-name-and-parameters
@javiereguiluz
Copy link
Member

Thanks Thomas!

While merging I tweaked things a bit because code like {% app.current_route %} is no longer valid Twig code. I removed the entire Twig block and linked to the "global Twig app" doc that explains those two variables.

@ThomasLandauer ThomasLandauer deleted the patch-17 branch December 13, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants