Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15224

External preview link leads to a preview without styling on alternate site in HAP

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 15.2.0
    • 15.2.0
    • None
    • None

    Description

      Reproduction Path:

      • Go to alternative channel
      • Enable External preview in channel settings
      • Save the settings
      • Accessing the preview shows a broken (not styled) content

       

      The details:

      When a page is requested, for instance, http://127.0.0.1:9080/site/alternate/events, the webfiles are loaded by a url without the 'alternate' subpath something like

      http://127.0.0.1:9080/site/webfiles/1670339331315/css/bootstrap.css
      http://127.0.0.1:9080/site/webfiles/1670339331315/css/main.css
      

       

      instead of

       

      http://127.0.0.1:9080/site/alternate/webfiles/1670339331315/css/bootstrap.css?preview-token=8eb76a9f-8713-4f65-966d-28bf0ede3d1a
      http://127.0.0.1:9080/site/alternate/webfiles/1670339331315/css/main.css?preview-token=8eb76a9f-8713-4f65-966d-28bf0ede3d1a
      

       

      Because of that the preview urls of css files return 404(notfound).

      http://127.0.0.1:9080/site/webfiles/1670339331315/css/bootstrap.css?preview-token=8eb76a9f-8713-4f65-966d-28bf0ede3d1a
      http://127.0.0.1:9080/site/webfiles/1670339331315/css/main.css?preview-token=8eb76a9f-8713-4f65-966d-28bf0ede3d1a
      
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cgul Cuneyt Gul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: