Bugfix in BaseUri to correctly strip template variables when the repository lookup path is obtained from a NativeWebRequest.