diff --git a/ChatController/ChatKlassen/ChatMessage.cs b/ChatController/ChatKlassen/ChatMessage.cs index a1a6be3..23370f4 100644 --- a/ChatController/ChatKlassen/ChatMessage.cs +++ b/ChatController/ChatKlassen/ChatMessage.cs @@ -191,6 +191,11 @@ namespace ChatController.ChatKlassen { return new Uri("http://" + UserMessage); } + + if(UserMessage.Contains("https")) + { + return new Uri(UserMessage); + } } return null; diff --git a/ChatController/ChatMainControl.xaml b/ChatController/ChatMainControl.xaml index a85ed94..6077d71 100644 --- a/ChatController/ChatMainControl.xaml +++ b/ChatController/ChatMainControl.xaml @@ -299,10 +299,10 @@ - - - - + + + + diff --git a/ChatController/ChatMainControl.xaml.cs b/ChatController/ChatMainControl.xaml.cs index 885eb92..1a7dcaf 100644 --- a/ChatController/ChatMainControl.xaml.cs +++ b/ChatController/ChatMainControl.xaml.cs @@ -947,7 +947,8 @@ namespace ChatController private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { - Process.Start(e.Uri.ToString()); + Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); + e.Handled = true; } private void ButtonReloadGruppen_OnClick(object sender, RoutedEventArgs e) diff --git a/PrototypChat/.vs/PrototypChat/v16/.suo b/PrototypChat/.vs/PrototypChat/v16/.suo index 939eb71..d2905ca 100644 Binary files a/PrototypChat/.vs/PrototypChat/v16/.suo and b/PrototypChat/.vs/PrototypChat/v16/.suo differ