Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-43658

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

      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

      On JIRA 6.4.x
      1. Setup a context path different than /jira for your JIRA instance;
      2. On a project's overview, click Releases and select a version, then click Release Notes;
      3. Notice the URL built uses /jira for its context path, which results either on a blank page or a 404 error;
      On JIRA 7.0
      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

              arantos Alex Rantos (Inactive)
              pahennig Paulo Hennig (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: