Core.Route: fixed issues with automatic determination of base URL.