diff --git a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectPropertyBagEntry.cs b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectPropertyBagEntry.cs index d5fec7eb1..006b3363c 100644 --- a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectPropertyBagEntry.cs +++ b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectPropertyBagEntry.cs @@ -106,7 +106,7 @@ public override ProvisioningTemplate ExtractObjects(Web web, ProvisioningTemplat foreach (PropertyBagEntry propbagEntry in template.PropertyBagEntries) { - propbagEntry.Value = Tokenize(propbagEntry.Value, web.ServerRelativeUrl); + propbagEntry.Value = Tokenize(propbagEntry.Value, web.Url); } } return template; diff --git a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs index 42991cf89..5ec195c24 100644 --- a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs +++ b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs @@ -65,7 +65,7 @@ public override ProvisioningTemplate ExtractObjects(Web web, ProvisioningTemplat { if (!string.IsNullOrEmpty(titleNodeNodes[0].SimpleUrl)) { - footer.Logo = Tokenize(titleNodeNodes[0].SimpleUrl, web.ServerRelativeUrl); + footer.Logo = Tokenize(titleNodeNodes[0].SimpleUrl, web.Url); } if (!string.IsNullOrEmpty(titleNodeNodes[0].Title)) { @@ -89,7 +89,7 @@ public override ProvisioningTemplate ExtractObjects(Web web, ProvisioningTemplat var logoNode = menuState.Nodes.FirstOrDefault(n => n.Title == Constants.SITEFOOTER_LOGONODEKEY); if (logoNode != null) { - footer.Logo = Tokenize(logoNode.SimpleUrl, web.ServerRelativeUrl); + footer.Logo = Tokenize(logoNode.SimpleUrl, web.Url); } } } @@ -99,7 +99,7 @@ public override ProvisioningTemplate ExtractObjects(Web web, ProvisioningTemplat { foreach (var innerMenuNode in menuNodesNode.Nodes) { - footer.FooterLinks.Add(ParseNodes(innerMenuNode, template, web.ServerRelativeUrl, creationInfo.PersistMultiLanguageResources, defaultCulture, menuNodesNode.Key, creationInfo)); + footer.FooterLinks.Add(ParseNodes(innerMenuNode, template, web.Url, creationInfo.PersistMultiLanguageResources, defaultCulture, menuNodesNode.Key, creationInfo)); } } if (creationInfo.ExtractConfiguration != null && creationInfo.ExtractConfiguration.SiteFooter != null && creationInfo.ExtractConfiguration.SiteFooter.RemoveExistingNodes) @@ -310,7 +310,7 @@ private void CopyStream(Stream source, Stream destination) destination.Write(buffer, 0, bytesRead); } while (bytesRead != 0); } - private SiteFooterLink ParseNodes(MenuNode node, ProvisioningTemplate template, string webServerRelativeUrl, bool persistLanguage, CultureInfo currentCulture, string parentKey, ProvisioningTemplateCreationInformation creationInfo) + private SiteFooterLink ParseNodes(MenuNode node, ProvisioningTemplate template, string webUrl, bool persistLanguage, CultureInfo currentCulture, string parentKey, ProvisioningTemplateCreationInformation creationInfo) { var link = new SiteFooterLink(); @@ -326,14 +326,14 @@ private SiteFooterLink ParseNodes(MenuNode node, ProvisioningTemplate template, link.DisplayName = node.Title; } - link.Url = Tokenize(node.SimpleUrl, webServerRelativeUrl); + link.Url = Tokenize(node.SimpleUrl, webUrl); if (node.Nodes.Count > 0) { link.FooterLinks = new SiteFooterLinkCollection(template); foreach (var childNode in node.Nodes) { - link.FooterLinks.Add(ParseNodes(childNode, template, webServerRelativeUrl, persistLanguage, currentCulture, node.Key, creationInfo)); + link.FooterLinks.Add(ParseNodes(childNode, template, webUrl, persistLanguage, currentCulture, node.Key, creationInfo)); } } return link;