Skip to content
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

[Twig] Escaping route names with backslashes #2348

Open
freerich opened this issue Apr 10, 2024 · 0 comments
Open

[Twig] Escaping route names with backslashes #2348

freerich opened this issue Apr 10, 2024 · 0 comments
Labels

Comments

@freerich
Copy link

Since Symfony 6.4 we have route name aliases for invokable controllers. The autocomplete in Twig templates already provides those route aliases, for example in the path() function. But this kind of route aliases have backslashes, so the autocomplete works, but Twig won't like these unescaped strings.

It would be great if the route names were escaped automatically if you used this autocomplete in Twig.

More about this Symfony feature: https://symfony.com/blog/new-in-symfony-6-4-fqcn-based-routes

Haehnchen added a commit that referenced this issue May 20, 2024
Haehnchen added a commit that referenced this issue May 20, 2024
#2348 provde FQCN-based Routes support (only compiled provider) / [Twig] Escaping route names with backslashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants