From 836ea14e473b327683524568009f389a139c29cc Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Tue, 24 Oct 2023 13:40:15 +0200 Subject: [PATCH] CONTENTBOX-1462 #resolve Generated Sitemap has broken links --- .../contentbox-sitemap/views/sitemap_html.cfm | 14 ++++++------- .../contentbox-sitemap/views/sitemap_json.cfm | 18 ++++++++--------- .../contentbox-sitemap/views/sitemap_txt.cfm | 8 ++++---- .../contentbox-sitemap/views/sitemap_xml.cfm | 20 +++++++++---------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_html.cfm b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_html.cfm index cbd46aa6cb..2bb050b5a6 100644 --- a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_html.cfm +++ b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_html.cfm @@ -6,25 +6,25 @@
  • Home
  • - +
  • - #content[ 'title' ]# + #content[ 'title' ]#
  • - -
  • #left( prc.blogEntryPoint, -1 )# + +
  • #left( prc.blogEntryPoint, -1 )#
  • - + - \ No newline at end of file + diff --git a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_json.cfm b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_json.cfm index 10f6bd0c46..1f4974eab3 100644 --- a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_json.cfm +++ b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_json.cfm @@ -1,29 +1,29 @@ [ {"loc": "#prc.linkHome#" } - ,{ - "loc": "#prc.siteBaseURL##content[ 'slug' ]#", + ,{ + "loc": "#prc.siteBaseURL#/#content[ 'slug' ]#", "lastmod": "#dateFormat( content[ 'modifiedDate' ], "yyyy-mm-dd" )#" ,"image": { - "loc": "#prc.siteBaseURL & reReplace( content.get( "featuredImageURL" ), "^/", "" )#" + "loc": "#prc.siteBaseURL & "/" & reReplace( content.get( "featuredImageURL" ), "^/", "" )#" } - + } - + ,{ "loc": "#prc.siteBaseURL##prc.blogEntryPoint#" } - ,{ - "loc": "#prc.siteBaseURL##prc.blogEntryPoint##content[ 'slug' ]#", + ,{ + "loc": "#prc.siteBaseURL#/#prc.blogEntryPoint##content[ 'slug' ]#", "lastmod": "#dateFormat( content[ 'modifiedDate' ], "yyyy-mm-dd" )#" , "image": { - "loc": "#prc.siteBaseURL & reReplace( content.get( "featuredImageURL" ), "^/", "" )#" + "loc": "#prc.siteBaseURL & "/" & reReplace( content.get( "featuredImageURL" ), "^/", "" )#" } } ] - \ No newline at end of file + diff --git a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_txt.cfm b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_txt.cfm index db5ae05b6f..e540d8a393 100644 --- a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_txt.cfm +++ b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_txt.cfm @@ -1,12 +1,12 @@ #prc.linkHome##chr( 10 )##prc.siteBaseURL##content[ 'slug' ]# +--->#prc.siteBaseURL#/#content[ 'slug' ]# #prc.siteBaseURL##prc.blogEntryPoint# +--->#prc.siteBaseURL#/#prc.blogEntryPoint# #prc.siteBaseURL##prc.blogEntryPoint##content[ 'slug' ]# +--->#prc.siteBaseURL#/#prc.blogEntryPoint##content[ 'slug' ]# - \ No newline at end of file + diff --git a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_xml.cfm b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_xml.cfm index 6f9433436a..d188186897 100644 --- a/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_xml.cfm +++ b/modules/contentbox/modules/contentbox-ui/modules/contentbox-sitemap/views/sitemap_xml.cfm @@ -3,33 +3,33 @@ xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> #XMLFormat( prc.linkHome )# - + - #xmlFormat( prc.siteBaseURL & content[ 'slug' ] )# + #xmlFormat( prc.siteBaseURL & "/" & content[ 'slug' ] )# #dateFormat( content[ 'modifiedDate' ], "yyyy-mm-dd" )# - #xmlFormat( prc.siteBaseURL & reReplace( content.get( "featuredImageURL" ), "^/", "" ) )# + #xmlFormat( prc.siteBaseURL & "/" & reReplace( content.get( "featuredImageURL" ), "^/", "" ) )# - + - #xmlFormat( prc.siteBaseURL & prc.blogEntryPoint )# - + #xmlFormat( prc.siteBaseURL & "/" & prc.blogEntryPoint )# + - #xmlFormat( prc.siteBaseURL & prc.blogEntryPoint & content[ 'slug' ] )# + #xmlFormat( prc.siteBaseURL & "/" & prc.blogEntryPoint & content[ 'slug' ] )# #dateFormat( content[ 'modifiedDate' ], "yyyy-mm-dd" )# - #xmlFormat( prc.siteBaseURL & reReplace( content.get( "featuredImageURL" ), "^/", "" ) )# + #xmlFormat( prc.siteBaseURL & "/" & reReplace( content.get( "featuredImageURL" ), "^/", "" ) )# - - \ No newline at end of file + +