Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-110

URL with pound sign(#) in channel manager gives error

    XMLWordPrintable

Details

    • Flagged

    Description

      Internet Explorer version: 9,10 and 11
      hippo.release.version: 7.9.7
      hippo.addon-channel-manager.version: 2.26.07

      Reproduction

      Either:

      Or:

      Then:

      • build and run the project
      • Open the news overview page in the channel manager in IE 10.
      • Open a news detail document.

      Current Situation

      • An error message is displayed and the detail page is not shown.

      Desired Situation

      • The detail page is shown.

      Background

      This issue popped up when integrating a angular app in the site.

      Analysis

      To quickly see what's happening execute [2] in the console and view the network trafic in both IE and in e.g. chrome.

      A possible solution could be to add[4] at [3] in [1]. (With special thanks to Rik Smith from the NS)

      [1]
      http://svn.onehippo.org/repos/hippo/hippo-cms7/addons/addon-channel-manager/branches/hippo-addon-channel-manager-2.26.xx/frontend/src/main/java/org/onehippo/cms7/channelmanager/templatecomposer/pageeditor/IFramePanel.js

      [2]
      xmlhttp = new XMLHttpRequest();xmlhttp.open('GET',"http://localhost:8080/site/news#test",true);xmlhttp.send()

      [3]

      _getFrameLocation: function() {
                  var frameDocument, href;
      
                  frameDocument = this._getFrameDocument();
      
                  if (frameDocument !== undefined && frameDocument.location !== undefined) {
                      href = frameDocument.location.href;
                      if (href !== undefined && href !== '' && href !== 'about:blank') {
                          return href;
                      }
                  }
                  return this._getFrameDom().src;
              },
      

      [4]

       href = frameDocument.location.href;
                      if (href !== undefined && href !== '' && href !== 'about:blank') {
                          return href.replace(frameDocument.location.hash,"");
                      }
      

      Attachments

        1. ChannelMGR-100.png
          ChannelMGR-100.png
          396 kB
        2. Foutmelding.PNG
          Foutmelding.PNG
          7 kB
        3. NewsOverview.png
          NewsOverview.png
          139 kB

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            hippo-helpdesk@bloomreach.com Hippo Helpdesk
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: