Hi,

      My jenkins is behind proxy server  [ngnix] and for node connection [with .jar agent] i had to configure the direct servers url and not the proxy's one as my ngninx cannot transfer none http/s connection and it's unnecessary. 

      now, when i want to create a new view [by pressing on 'new view' on the left bar at the home page] it takes me to jenkins's server url and not the proxy's.

      it's now: -http://jenkins-server:8080/jenkins/newView

      and should be: https://gateway.com/jenkins/newView

          [JENKINS-51291] 'new view' wrong url - not relative

          I got you. But I reported a bug because only new view link is not relative.. All of the others are relative and works well

          Kirill Kamaldinov added a comment - I got you. But I reported a bug because only new view link is not relative.. All of the others are relative and works well

          Oleg Nenashev added a comment -

          OK, I am happy to reopen it for further triage. There were related patches in the recent versions

          Oleg Nenashev added a comment - OK, I am happy to reopen it for further triage. There were related patches in the recent versions

          I think the linked PR will correct your problem The link was absolute, using the rootUrl and now it will use the internal feature of relative link for actions.

          Wadeck Follonier added a comment - I think the linked PR will correct your problem The link was absolute, using the rootUrl and now it will use the internal feature of relative link for actions.

          Oleg Nenashev added a comment -

          Likely it is fixed by JENKINS-48447

          Oleg Nenashev added a comment - Likely it is fixed by  JENKINS-48447

          Oleg Nenashev added a comment -

          UPD: it's not 

          Oleg Nenashev added a comment - UPD: it's not 

          Can confirm this is still an issue and my environment is configured similar to original reporter.

          Michael Keyser added a comment - Can confirm this is still an issue and my environment is configured similar to original reporter.

          Initial PR closed. Another approach seems to be required.

          Wadeck Follonier added a comment - Initial PR closed. Another approach seems to be required.

          Jesse Glick added a comment -

          JENKINS-48447 broke usage in folders: inside a folder, the New View link actually creates a view at the Jenkins root.

          Jesse Glick added a comment - JENKINS-48447 broke usage in folders: inside a folder, the New View link actually creates a view at the Jenkins root.

          Senthil added a comment -

          is the issue still opened.? If so, I would like to work on it.

          Senthil added a comment - is the issue still opened.? If so, I would like to work on it.

          Ilia Zasimov added a comment -

          My attempt to fix it was failed. Sorry for wrongs status.
          You can check my PR connected with this issue if you want https://github.com/jenkinsci/jenkins/pull/4310

          Ilia Zasimov added a comment - My attempt to fix it was failed. Sorry for wrongs status. You can check my PR connected with this issue if you want https://github.com/jenkinsci/jenkins/pull/4310

            Unassigned Unassigned
            apresfiux Kirill Kamaldinov
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: