proxy plugin: Fixed bug causing internal URLs to leak