Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 8bf176f

Browse files
committed
Allow BaseUris without scheme.
We now allow the enterprise URL to be entered without a scheme, but `new Uri(string)` requires a scheme. Use `new UriBuilder(string).Uri` instead which assumes http.
1 parent 352a9d2 commit 8bf176f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/Dialog/LoginToGitHubForEnterpriseViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public EnterpriseLoginMethods? SupportedLoginMethods
113113

114114
public ReactivePropertyValidator EnterpriseUrlValidator { get; }
115115

116-
protected override Uri BaseUri => new Uri(EnterpriseUrl);
116+
protected override Uri BaseUri => new UriBuilder(EnterpriseUrl).Uri;
117117

118118
public IReactiveCommand<Unit> NavigateLearnMore
119119
{

0 commit comments

Comments
 (0)