Service update, import changes from web_portal
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user