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

Open Blue Ocean button is not working when jenkins home url is different

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      In a case of having a difference home URL of Jenkins, It is not working well.
      ex>
      home url : jenkins.me/jenkins
      BlueOceanUrl is, "jenkins.me/blue". but it should link "jenkins.me/jenkins/blue"

          [JENKINS-41408] Open Blue Ocean button is not working when jenkins home url is different

          James Dumay added a comment -

          rpkim did you mean to put this "In Progress"? Are you working on this?

          James Dumay added a comment - rpkim did you mean to put this "In Progress"? Are you working on this?

          Jay Kim added a comment -

          jdumay yes. I did.
          But I don't understand the process completely.
          I just modify the file from git branch and try to commit.

          Jay Kim added a comment - jdumay yes. I did. But I don't understand the process completely. I just modify the file from git branch and try to commit.

          Jay Kim added a comment -

          jdumay Could you let me know the process for commit ?

          https://github.com/rpkim/blueocean-plugin/blob/master/blueocean-web/src/main/js/try.js

          origin source :
          function getAppUrl() {
          const rootUrl = $('head').attr('data-rooturl');
          if (!rootUrl)

          { return ''; }

          else

          { return rootUrl; }

          }

          modified source
          function getAppUrl() {
          return rootUrl = $('head').attr('data-rooturl');
          }

          Jay Kim added a comment - jdumay Could you let me know the process for commit ? https://github.com/rpkim/blueocean-plugin/blob/master/blueocean-web/src/main/js/try.js origin source : function getAppUrl() { const rootUrl = $('head').attr('data-rooturl'); if (!rootUrl) { return ''; } else { return rootUrl; } } modified source function getAppUrl() { return rootUrl = $('head').attr('data-rooturl'); }

          Jay Kim added a comment -

          Jay Kim added a comment - https://github.com/rpkim/blueocean-plugin/pull/1

          James Dumay added a comment -

          rpkim You want to file the PR against our repo rather than your fork. If you need help then read this https://help.github.com/articles/creating-a-pull-request-from-a-fork/

          James Dumay added a comment - rpkim You want to file the PR against our repo rather than your fork. If you need help then read this https://help.github.com/articles/creating-a-pull-request-from-a-fork/

          Jay Kim added a comment -

          jamesdumay Thanks. I create a pull request, https://github.com/jenkinsci/blueocean-plugin/pull/749

          Have a good day.
          Jay.

          Jay Kim added a comment - jamesdumay Thanks. I create a pull request, https://github.com/jenkinsci/blueocean-plugin/pull/749 Have a good day. Jay.

            rpkim Jay Kim
            rpkim Jay Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: