Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-1647

https://jenkins.io/jep/NNN redirects

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be neat if https://jenkins.io/jep/NNN could redirect to https://github.com/jenkinsci/jep/blob/master/jep/NNN/README.adoc as a clean permalink, since I expect plenty of people will want to link to JEPs when explaining things.

      I would submit a PR but I have no clue how to do such a thing in Awestruct or if it is even possible. Basically a mini-servlet, ideally using content/_layouts/redirect.html.haml.

        Attachments

          Issue Links

            Activity

            Hide
            olblak Olivier Vernin added a comment -

            Redirections are done in the jenkins.io docker image.

            So in order to complete this, we must
            1. Build a new docker image
            2. Deploy the new docker image by updating the tag

            Show
            olblak Olivier Vernin added a comment - Redirections are done in the jenkins.io docker image . So in order to complete this, we must 1. Build a new docker image 2. Deploy the new docker image by updating the tag
            Hide
            jglick Jesse Glick added a comment -

            Ah, I was looking in the wrong place entirely. Yes using rewrite rules with regexps would make this very simple I think. Possibly just

            rewrite ^/jep/([0-9]+) https://github.com/jenkinsci/jep/blob/master/jep/$1/README.adoc
            
            Show
            jglick Jesse Glick added a comment - Ah, I was looking in the wrong place entirely. Yes using rewrite rules with regexps would make this very simple I think. Possibly just rewrite ^/jep/([0-9]+) https://github.com/jenkinsci/jep/blob/master/jep/$1/README.adoc
            Show
            jglick Jesse Glick added a comment - FYI: https://github.com/jenkins-infra/asciidoctor-jenkins-extensions/pull/5
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            INFRA-1760 (PR referenced by Jesse Glick) does not solve this issue.

            But it helps with jenkins.io content at least

            Show
            oleg_nenashev Oleg Nenashev added a comment - INFRA-1760 (PR referenced by Jesse Glick ) does not solve this issue. But it helps with jenkins.io content at least
            Hide
            olblak Olivier Vernin added a comment -

            I also think that it can still be useful

            Show
            olblak Olivier Vernin added a comment - I also think that it can still be useful
            Hide
            jglick Jesse Glick added a comment -

            Right, INFRA-1760 helps in the case of jenkins.io content, but not with links from other sources.

            Show
            jglick Jesse Glick added a comment - Right, INFRA-1760 helps in the case of jenkins.io content, but not with links from other sources.
            Hide
            jglick Jesse Glick added a comment -

            Thanks!

            Show
            jglick Jesse Glick added a comment - Thanks!

              People

              Assignee:
              kduck13 Kayla Altepeter
              Reporter:
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: