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

PageComposerContextService#getEditingLiveChannelPath returns wrong path

    XMLWordPrintable

Details

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

    Description

      instead of

      public String getEditingLiveChannelPath() {
      final String channelPath = getEditingPreviewChannelPath();
      if (channelPath.endsWith("-preview"))

      { return StringUtils.substringAfterLast(channelPath, "-preview"); }

      // there is no preview yet: Live and preview are same paths
      return channelPath;
      }

      if must be

      public String getEditingLiveChannelPath() {
      final String channelPath = getEditingPreviewChannelPath();
      if (channelPath.endsWith("-preview"))

      { return StringUtils.substringBeforeLast(channelPath, "-preview"); }

      // there is no preview yet: Live and preview are same paths
      return channelPath;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: