symfony/symfony — pull request #4002 by Seldaek (2012-04-19 09:56:54+00:00)
Title: [Templating] Return base URL when an empty path is given to asset()

I think it's straightforward enough in the patch. Tests pass. It's quite useful to generate the base path to send to a JS frontend.