Fix asset-url("/path", true)

Fix URL helpers bug #1472 and clean up duplication a bit.