Strips the base off the generated URL from the AuthComponent.

Fixes #3922.