diff --git a/DesktopUI2/DesktopUI2/ViewModels/OneClickViewModel.cs b/DesktopUI2/DesktopUI2/ViewModels/OneClickViewModel.cs index e7bb977904..35a8a622d9 100644 --- a/DesktopUI2/DesktopUI2/ViewModels/OneClickViewModel.cs +++ b/DesktopUI2/DesktopUI2/ViewModels/OneClickViewModel.cs @@ -298,13 +298,21 @@ private string Url { get { - var commit = ""; - if (!string.IsNullOrEmpty(Id)) + var account = AccountManager.GetDefaultAccount(); + if (account.serverInfo.frontend2) { - commit = "commits/" + Id; + return $"{_fileStream.ServerUrl.TrimEnd('/')}/projects/{_fileStream.StreamId}"; } + else + { + var commit = ""; + if (!string.IsNullOrEmpty(Id)) + { + commit = "commits/" + Id; + } - return $"{_fileStream.ServerUrl.TrimEnd('/')}/streams/{_fileStream.StreamId}/{commit}"; + return $"{_fileStream.ServerUrl.TrimEnd('/')}/streams/{_fileStream.StreamId}/{commit}"; + } } }