Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 1.0.0-preview.1 (Unreleased)
## 1.0.0-preview.1 (2021-03-10)

### New features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public static Uri GetModelUri(string dtmi, Uri repositoryUri, bool expanded = fa
ModelsRepositoryConstants.ExpandedJsonFileExtension);
}

UriBuilder repositoryUriBuilder = new UriBuilder(repositoryUri);
var repositoryUriBuilder = new UriBuilder(repositoryUri);

// If the base URI (repositoryUri in this case) path segment does not end in slash
// that segment will be dropped and not properly anchored to by the intended relative URI.
if (!repositoryUriBuilder.Path.EndsWith("/", StringComparison.InvariantCultureIgnoreCase))
{
repositoryUriBuilder.Path += "/";
Expand Down