Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39849

Lots of failed requests for i18n bundles in the console

    Details

    • Similar Issues:
    • Sprint:
      arctic, tasman

      Description

      https://github.com/jenkinsci/blueocean-plugin/blob/4a1ea8038ef3eec3c8cb5725050c888f97834292/blueocean-core-js/src/js/i18n/i18n.js#L16

      {urlConfig.getJenkinsRootURL()}} is never null and always returns a trailing slash

      {/}

      in the case of dogfood urlConfig.getJenkinsRootURL() will always be {/}

      . This causes the browser to call {{//i18n/resourceBundle?language=

      {lng}&baseName={ns}} which says the double slash should match the protocol (http or https)

      I think the fix is:
      
      

      const prefix = urlConfig.getJenkinsRootURL()
      const loadPath = `${prefix}i18n/resourceBundle?language={lng}

      &baseName=

      {ns}

      `;

      
      

        Attachments

          Issue Links

            Activity

            jamesdumay James Dumay created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Sprint arctic [ 131 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            tscherler Thorsten Scherler made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            tscherler Thorsten Scherler made changes -
            Link This issue relates to JENKINS-39846 [ JENKINS-39846 ]
            tscherler Thorsten Scherler made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Sprint arctic [ 131 ] arctic, tasman [ 131, 136 ]
            tscherler Thorsten Scherler made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                tscherler Thorsten Scherler
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: