I spent some time reading through Symfony 6.x and Twig 3.x docs. I couldn t find anything about linking to HTML id attributes via the twig templating engine to accomplish smooth scrolling on the same-page.
from what I understand, I need to create a route attribute/annotation that maps to the classes controller/method. doing so will require a new page to be created.
You can also create parameters for your route attribute/annotation such as a {slug} that can be passed as a argument via the controller/method. Doing this will allow you to use the URL param as a variable. This method also requires you to link to another page.
Is there a way to use Symfony 6.2 & Twig 3.x and link to html id attributes on the same page. Is there a section on the docs I overlooked... I m all out of ideas... you re help would be greatly appreciated thanks!