Skip to content

Commit

Permalink
#1540 add fallback to help call
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBlaa committed Jan 19, 2024
1 parent 2c845f5 commit cc2e43c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System.Web.Mvc;
using BExIS.Utils.Config;
using BExIS.Utils.Helpers;
using System;
using System.Web.Mvc;
using Vaiona.Web.Mvc.Modularity;

namespace BExIS.Modules.Dcm.UI.Controllers
Expand All @@ -13,6 +16,12 @@ public ActionResult Index()
// commentar
string helpurl = ModuleManager.GetModuleSettings("DCM").GetValueByKey("help").ToString();

//add default link if not set
if (String.IsNullOrEmpty(helpurl))
{
helpurl = ManualHelper.GetUrl(GeneralSettings.ApplicationVersion, "DCM");
}

return Redirect(helpurl);
}
}
Expand Down

0 comments on commit cc2e43c

Please sign in to comment.