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

Absolute link generated with getHstLinkCreator changes behavior after creating CM session

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 14.0.0
    • 14.1.0
    • hst-api
    • None
    • Puma Sprint 226

    Description

      When creating an absolute link with the code below, the behavior changes dependin on the Channel manager session.

      public static String getImageLink(HstRequestContext requestContext, HippoBean linkBean) {
          return requestContext.getHstLinkCreator()
                  .create(linkBean.getNode(), HstUtils.getMount())
                  .toUrlForm(requestContext, true);
      }
      

      When there is Channel manager session the link is relative and when the is not channel manager status the link is absolute.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: