This a bit hacky, but could not think of a better way 

maybe this but its not any simpler 
```ruby
uri = URI url_for(url_params)
"#{uri.host}://#{uri.path}.{format}"
```