Service update, import changes from web_portal

This commit is contained in:
Claudio Boggian
2023-06-21 10:38:57 +02:00
parent 39fa4dedf3
commit bb99cef33c
101 changed files with 4266 additions and 3044 deletions
@@ -1,10 +1,9 @@
using console_spo_utils.Constants;
using console_spo_utils.Interfaces.Services;
using library_spo_utils.Constants;
using library_spo_utils.Interfaces.Services;
using Microsoft.Extensions.Logging;
using Microsoft.SharePoint.Client;
using Microsoft.SharePoint.Navigation;
namespace console_spo_utils.Services;
namespace library_spo_utils.Services;
internal class ProjectQuickMenuService : IProjectQuickMenuService
{
@@ -50,7 +49,9 @@ internal class ProjectQuickMenuService : IProjectQuickMenuService
continue;
}
ctx.Web.RootFolder.WelcomePage = $"SottoCommesse%20{projName}/Forms/SottoCommesse%20{projName}.aspx";
var projNameWithoutDash = projName.Replace("-", "");
ctx.Web.RootFolder.WelcomePage = $"SottoCommesse%20{projNameWithoutDash}/Forms/SottoCommesse%20{projNameWithoutDash}.aspx";
ctx.Web.RootFolder.Update();
ctx.ExecuteQuery();