diff --git a/MP.MON/Components/Layout/MainLayout.razor b/MP.MON/Components/Layout/MainLayout.razor index 37d9434d..db14a94e 100644 --- a/MP.MON/Components/Layout/MainLayout.razor +++ b/MP.MON/Components/Layout/MainLayout.razor @@ -24,8 +24,22 @@ @code{ + [Inject] + protected NavigationManager NavMan { get; set; } = null!; + + [Inject] + protected IConfiguration config { get; set; } = null!; + protected override void OnInitialized() { + // controllo URL x riscrivere se non fosse /MP/MON finale... + string baseUrl = config.GetValue("ServerConf:BaseAppPath") ?? "/MP/MON/"; + string wrongEnd = baseUrl.Substring(0, baseUrl.Length - 1); + string currUrl = NavMan.Uri; + if(currUrl.EndsWith(wrongEnd)) + { + NavMan.NavigateTo(baseUrl, true); + } // base.OnInitialized(); var currAssembly = typeof(Program).Assembly.GetName(); version = currAssembly.Version != null ? currAssembly.Version : new Version(); diff --git a/MP.MON/MP.MON.csproj b/MP.MON/MP.MON.csproj index 8b060159..ec31fc89 100644 --- a/MP.MON/MP.MON.csproj +++ b/MP.MON/MP.MON.csproj @@ -6,7 +6,7 @@ enable MP.MON $(AssemblyName.Replace(' ', '_')) - 6.16.2503.1710 + 6.16.2503.1711 diff --git a/MP.MON/Resources/ChangeLog.html b/MP.MON/Resources/ChangeLog.html index 29716892..97f7a450 100644 --- a/MP.MON/Resources/ChangeLog.html +++ b/MP.MON/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2503.1710

+

Versione: 6.16.2503.1711


Note di rilascio: