VM's URL matching is pretty basic; one big, hairy regexp as I recall. See vm-url-regexp. Attack that if you want immediate relief, but a real fix is going to require more sophistication in the code I expect.