Branch: refs/heads/master
  Home:   https://github.com/jenkins-infra/jenkins.io
  Commit: fabbe773211e734636df6118ba5ce6ec99b8438c
      
https://github.com/jenkins-infra/jenkins.io/commit/fabbe773211e734636df6118ba5ce6ec99b8438c
  Author: Mark Waite <mark.earl.wa...@gmail.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M Jenkinsfile
    M Makefile
    M content/events/hacktoberfest.adoc
    M content/participate/report-issue.adoc
    M content/participate/test.adoc
    M content/project/conduct.adoc
    M content/project/team-leads.adoc
    M content/redirect/oracle-account-signup.adoc
    M content/redirect/pipeline-cps-method-mismatches.adoc
    M content/security/plugins.adoc
    M content/security/reporting.adoc
    M content/solutions/php.adoc
    M content/templates/updates.adoc
    A scripts/check-hard-coded-URL-references

  Log Message:
  -----------
  Prevent absolute links from adoc to www.jenkins.io and jenkins.io (#5899)

## Prevent absolute links to jenkins.io and www.jenkins.io in adoc files

When the https://www.jenkins.io/ URL is embedded in the source code of
the jenkins.io pages, it causes a user exploring a pull request through
the preview sites to be moved from the preview site to the
www.jenkins.io site. If they are not very carefully watching the URL
address bar, they can waste time looking at the production site when
they wanted to review the preview site.

* https://github.com/jenkins-infra/jenkins.io/issues/5718
* https://github.com/jenkins-infra/jenkins.io/pull/5715

@ADITYADAS1999 I assumed that the issue was more difficult than you were
ready to attack. If you'd like to review the technique I've used, I'd
love to have comments or recommendations of ways it could be improved.

Co-authored-by: Damien Duportal <damien.dupor...@gmail.com>


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-commits+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkins-infra/jenkins.io/push/refs/heads/master/19e18d-fabbe7%40github.com.

Reply via email to