The $generatePath instance method makes it possible to generate the absolute path to any route using its name and parameters. Using this method ensures all links are automatically updated whenever a route is changed.
Alternatively, you may use a view link within your component templates to generate routes declaratively.