make custom base URLs work