Check the discussion around the php_wordpress_total_cache module. I feel like the mixin should parse the location URI in order to return an usable String, check also the @wchen-r7 comment above.