Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9542

Microsoft IE and Edge doesn't like relative path on Angular apps

    Details

      Description

      H19 has received a huge refactoring in terms of JavaScript applications, and part of that work was replacing GWT with Angular.

      Everything works as expected on real browsers like Chrome, FireFox and Safari on any operating system, but with IE and Edge, you'll get "Page Not Found" from several Angular apps, due to how the relative URLs are handled when modifying window.location.href.

      The only workaround I found so far is by using FULL URLs, I mean, http://localhost:8980/opennms/graph/chooseresource.jsp instead of graph/chooseresource.jsp, because on IE/Edge you'll get http://localhost:8980/opennms/graph/graph/chooseresource.jsp as the generated page which is wrong.

      Besides the choose resource page, I found that the requisitions UI, and the KSC pages suffers the same problem.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: