Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4590

Partial page render does not work in homepage

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • 14.0.0
    • None

    Description

      Partial render work fine for all cases but the home page, for example in a clean archetype project the following should work: http://localhost:8080/site./main but instead it returns a 404.

      Interesting that the same URL (plus the _cmsinternal) works fine: http://localhost:8080/site/_cmsinternal./main

      ====

      Another finding is in the response of http://localhost:8080/site/_cmsinternal./main

      This response is expected to return the markup and HST comments of the container MAIN, but this specific one (to the root) is adding also the HST page comment in the end.

      Example:

      <div>
      <!-- { "HST-Label":"Home Page Main", "HST-LastModified":"1556878783158", "HST-XType":"hst.vbox", "uuid":"a5854755-a798-4bed-a6b4-173f92828f43", "HST-Type":"CONTAINER_COMPONENT", "refNS":"r10_r1_r1", "url":"/site/_cmsinternal/root?_hn:type=component-rendering&_hn:ref=r10_r1_r1"} -->    <div class="hst-container">            <div class="hst-container-item"><!-- { "HST-Label":"Banner", "HST-LastModified":"1556878783158", "HST-XType":"hst.item", "uuid":"79653778-ed50-4e9d-9b67-d8afb383f2d5", "HST-Type":"CONTAINER_ITEM_COMPONENT", "refNS":"r10_r1_r1_r1", "url":"/site/_cmsinternal/root?_hn:type=component-rendering&_hn:ref=r10_r1_r1_r1"} -->
      <div>  <a href="/site/_cmsinternal/blog/2019/04/first-blog-post.html">    <figure style="position: relative"><!-- {"HST-Type":"MANAGE_CONTENT_LINK","parameterName":"document","parameterValue":"/content/documents/myproject/banners/banner1","parameterValueIsRelativePath":"true","pickerConfiguration":"cms-pickers/documents-only","pickerInitialPath":"/content/documents/myproject/banners","pickerRemembersLastVisited":"true","pickerRootPath":"/content/documents/myproject/banners","rootPath":"banners","uuid":"895fb1b6-410d-4972-9894-6b6a06d2b361"} -->      <img src="/site/_cmsinternal/binaries/content/gallery/myproject/banners/banner-1.jpg" alt="Sample banner"/>      <figcaption style="position:absolute; top:20px; left:20px; z-index:100; color:white; background: rgba(51, 122, 183, 0.7); width:60%; padding:0 20px 20px 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);">          <h3>Sample banner</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>      </figcaption>    </figure>  </a></div><!-- { "uuid":"79653778-ed50-4e9d-9b67-d8afb383f2d5", "HST-End":"true"} -->            </div>    </div><!-- { "uuid":"a5854755-a798-4bed-a6b4-173f92828f43", "HST-End":"true"} -->
      
      </div>
      <!-- { "HST-Path-Info":"/root", "HST-Context-Path":"/site", "HST-Site-Id":"e7024879-cd77-4e62-a97f-da9078c20140", "HST-Sitemap-Id":"f4ecd562-865d-41df-bf23-28c9f071da2e", "HST-Mount-Id":"291f22c4-fcb4-4494-bdd6-23d84c726cd7", "HST-Site-HasPreviewConfig":"true", "HST-Page-Id":"e61ea8db-9e90-4999-84dc-dd2b4a3b8e9f", "HST-SitemapItem-Id":"be7e43af-1571-4299-a4ce-1c9fd7ef1f75", "HST-Type":"PAGE-META-DATA", "HST-Channel-Id":"myproject-preview", "HST-Page-Editable":"true", "HST-Render-Variant":"hippo-default"} -->
      

      The last part of this response should not have been included, same for the enclosing divs.

       

      Attachments

        Issue Links

          Activity

            People

              nmendes Nuno Mendes (Inactive)
              nmendes Nuno Mendes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: