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

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

    XMLWordPrintable

Details

    Description

      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"

      Attachments

        Issue Links

          Activity

            jamesdumay James Dumay added a comment -

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

            jamesdumay James Dumay added a comment - rpkim did you mean to put this "In Progress"? Are you working on this?
            rpkim 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.

            rpkim 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.
            rpkim 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');
            }

            rpkim 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'); }
            rpkim Jay Kim added a comment - https://github.com/rpkim/blueocean-plugin/pull/1
            jamesdumay 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/

            jamesdumay 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/
            rpkim 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 added a comment - jamesdumay Thanks. I create a pull request, https://github.com/jenkinsci/blueocean-plugin/pull/749 Have a good day. Jay.

            People

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

              Dates

                Created:
                Updated:
                Resolved: