How to generate fully qualified URL?

I want to create a HTML mail letter.

How I can write a fully qualified url into html? I need to print something like ```html <a href="http://my.domain.com/some/action/param1/param2/">http://my.domain.com/some/action/param1/param2/</a> ``` I have a route: ```php $router->add('/some/action/{param1}/{param2}', 'something::somewhat', ['GET', 'POST'])->setHostName($domain)->setName('some-action'); ```

This method does not allow to print hostname and print a label with same URL: ```twig {{ link_to(['for': 'some-action', 'param1': '123', 'param2': '456'], "my link") }} ```

And this method does not allow to 'compile' route with my parameters and does not allow to create link with custom url: ```twig {% set someroute = routes['password-new'] %} {% set someurl = domain ~ someroute.compilePattern(['param1': '123', 'param2': '456']) %} {{ linkto(someurl, someurl) }} ``` Where "domain" is a "http://my.domain.com" and "routes" is an array of all routes.

Problem solved. A solution is ```twig {% set some_url = domain ~ url(['for': 'some-action', 'param1': '123', 'param2': '456']) %} ```