Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3473

PageComposerContextService#getEditingLiveChannelPath returns wrong path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
    • Similar issues:
    • Epic Link:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: