Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-2212

Greenhopper JavaScript sets browser title incorrectly for ampersand '&'

    XMLWordPrintable

Details

    Description

      Greenhopper tries to display our project name, "Ticker & NLE", in the browser's title bar when on the Agile pages. But, the name is escaped so that it displays incorrectly. From the page source:

      <script type="text/javascript">
      document.title = "Ticker &amp; NLE - Chart Board - Vizrt JIRA";
      </script>
      

      This results in the text "Ticker & NLE" in the title. If I change the code to the following, it displays correctly:

      <script type="text/javascript">
      document.title = "Ticker & NLE - Chart Board - Vizrt JIRA";
      </script>
      

      Reproduction steps:

      1. Create a project named "This & That".
      2. Enable the project in Greenhopper.
      3. Open project in Greenhopper's Agile view.

      Expected behaviour: Browser tab displays "This & That - Task Board [...]".

      Actual behaviour: Browser tab displays "This & That - Task Board [...]".

      In Chrome and Firefox.

      Attachments

        Activity

          People

            jchuet JC
            mychin Min Yee Chin [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: