How to build and/or modify generic URLs on Drupal/Symfony?
For example, having at the input an URL like: http://some.url/with?param1=value1#fragment
I would like to be able to manipulate any parts of the url including:
- cut off the query (search) part
- add more query parameters
- change the path part
- replace domain
- add/change fragment
- etc
I couldn't find anything appropriate in Drupal or Symfony.