Skip to content

Commit

Permalink
GH-32 Cannot navigate to the external URL link
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Jan 22, 2018
1 parent ffc7b65 commit 5f4dc73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R7.MiniGallery/ViewModels/ImageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Entities.Tabs;
using DotNetNuke.Services.FileSystem;
using DotNetNuke.UI.Modules;
using Newtonsoft.Json.Linq;
Expand Down Expand Up @@ -182,7 +183,11 @@ public string ThumbnailUrl {
public string NavigateUrl {
get {
if (!string.IsNullOrWhiteSpace (Model.Url)) {
return Globals.LinkClick (Model.Url, ModuleContext.TabId, ModuleContext.ModuleId, true);
var urlType = Globals.GetURLType (Model.Url);
if (urlType != TabType.File && urlType != TabType.Tab && urlType != TabType.Member) {
return Globals.LinkClick (Model.Url, ModuleContext.TabId, ModuleContext.ModuleId, true);
}
return Model.Url;
}
return ImageSrc;
}
Expand Down

0 comments on commit 5f4dc73

Please sign in to comment.