Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-59489

When a user generates a Release Notes from a project, the context path is ignored and automatically change to “/jira” resulting in a blank page

    XMLWordPrintable

    Details

      Description

      Hello, I have cloned JRA-43658 since this is still reproducible on 7.0.5 and 7.0.9.

      Summary

      Regardless of the context path setup for JIRA, accessing the Release Notes link from a version's details page builds a URL with context path /jira, which possibly results in a 404 error.

      Steps to Reproduce

      1. Setup a context path different than /jira for your JIRA instance;
      2. On a Scrum board, expand the Versions sidebar, then expand one of the versions and click Details;
      3. Click Release Notes, just below the version's name;
      4. Notice the URL built uses /jira for its context path, which results either on a blank page or a 404 error;

      Expected Behavior

      The context path should be retrieved from the application's Base URL, and not hard-coded.

      Actual Behavior

      Every time the URL for Release Notes is built, the context path is set to /jira.

      Workaround

      Option 1

      You can manually edit the URL from your web browser, adding the right context path (as shown in screenshot below).

      Option 2

      Add the following script in JIRA's Announcement Banner

      <script type="text/javascript">
      jQuery(window).load(function(){
      	release_report_notes_link = document.getElementById("release-report-notes-link")
      	if (release_report_notes_link != null){
      		release_report_notes_link.setAttribute("href",release_report_notes_link.getAttribute("href").replace('/jira', AJS.contextPath()));
      	}
      });
      </script>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rrosa@atlassian.com Rodrigo Rosa
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: