Skip to content

Fix URLs to Red Hat docs#4820

Closed
maximiliankolb wants to merge 1 commit intotheforeman:masterfrom
ATIX-AG:fix_rh_docs_url
Closed

Fix URLs to Red Hat docs#4820
maximiliankolb wants to merge 1 commit intotheforeman:masterfrom
ATIX-AG:fix_rh_docs_url

Conversation

@maximiliankolb
Copy link
Copy Markdown
Contributor

What changes are you introducing?

This patch changes the URL from "en/documentation/" to "en/products/".

$ fd -e adoc -t f | xargs sed --in-place "s@https://docs.redhat.com/en/documentation/@https://docs.redhat.com/en/products/@g"

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

Because the URLs were changed & my downstream CI reports broken links.

Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)

$ curl --silent -I https://docs.redhat.com/en/documentation/ | rg "^HTTP|^location" HTTP/2 301
location: /en/products

Alternative idea: use {RHDocsBaseURL} everwhere. Let me know what you think.

Contributor checklists

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.18/Katello 4.20 (Satellite 6.19)
  • Foreman 3.17/Katello 4.19
  • Foreman 3.16/Katello 4.18 (Satellite 6.18; orcharhino 7.6, 7.7, and 7.8)
  • Foreman 3.15/Katello 4.17
  • Foreman 3.14/Katello 4.16 (Satellite 6.17; orcharhino 7.4; orcharhino 7.5)
  • Foreman 3.13/Katello 4.15 (EL9 only)
  • Foreman 3.12/Katello 4.14 (Satellite 6.16; orcharhino 7.2 on EL9 only; orcharhino 7.3)
  • We do not accept PRs for Foreman older than 3.12.

This patch changes the URL from "en/documentation/" to "en/products/".

$ curl --silent -I https://docs.redhat.com/en/documentation/ | rg "^HTTP|^location"
HTTP/2 301
location: /en/products

$ fd -e adoc -t f | xargs sed --in-place "s@https://docs.redhat.com/en/documentation/@https://docs.redhat.com/en/products/@g"
@github-actions github-actions Bot added Needs tech review Requires a review from the technical perspective Needs style review Requires a review from docs style/grammar perspective Needs testing Requires functional testing labels May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

The PR preview for 7d900c7 is available at theforeman-foreman-documentation-preview-pr-4820.surge.sh

The following output files are affected by this PR:

show diff

show diff as HTML

@maximiliankolb maximiliankolb marked this pull request as draft May 6, 2026 13:00
@maximiliankolb
Copy link
Copy Markdown
Contributor Author

This PR makes it even worse

@maximiliankolb maximiliankolb deleted the fix_rh_docs_url branch May 7, 2026 05:46
@maximiliankolb
Copy link
Copy Markdown
Contributor Author

Closed: The fix is to ignore/change the check so that the link check job ignores the URL ^https://docs.redhat.com/en/documentation/$ but not ^https://docs.redhat.com/en/documentation/*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs style review Requires a review from docs style/grammar perspective Needs tech review Requires a review from the technical perspective Needs testing Requires functional testing Not yet reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant