Bug 267129

Summary: FreeBSD Status Reports: status/howto/ ERR_TOO_MANY_REDIRECTS
Product: Documentation Reporter: Graham Perrin <grahamperrin>
Component: WebsiteAssignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Some People CC: carlavilla, dbaio, salvadore
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: dbaio: maintainer-feedback+
grahamperrin: maintainer-feedback? (carlavilla)
Hardware: Any   
OS: Any   
URL: https://cgit.freebsd.org/doc/tree/website/content/en/status

Description Graham Perrin freebsd_committer freebsd_triage 2022-10-16 16:45:58 UTC
<https://www.freebsd.org/status/>, third paragraph: 

> … our recommendations. …

– refers to <https://www.freebsd.org/status/howto/>, 

ERR_TOO_MANY_REDIRECTS


howto.adoc exists at 
website/content/en/status/


Taking a hint from <https://github.com/freebsd/freebsd-doc/commit/e6cacb6ecf7ddc57257cad71963dc68e8807ea6c#diff-c55fbec5c13380852a09c02cf49f3d5016d87eb93c1102334f05c4541cf35b21R81>: 

    <https://www.freebsd.org/news/status/howto.html>

– redirects to: 

    <https://www.freebsd.org/status/howto/index.html>
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-10-16 17:37:31 UTC
Indeed, I can reproduce the bug. I will take care of it.

In the meantime, I change the url to reference the repository hosted on freebsd.org instead of the GitHub mirror.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-21 12:03:18 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=7fc616b5c596f7bca005f867e5be803ddc8e5d9a

commit 7fc616b5c596f7bca005f867e5be803ddc8e5d9a
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2022-10-21 11:57:38 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2022-10-21 12:02:03 +0000

    status/howto.adoc: Move to status/howto/_index.adoc

    This is necessary to fix links to howto/ being redirected to
    howto.html and then back to howto/.

    PR:             267129
    Reported by:    grahamperrin
    Approved by:    debdrup (status blanket)

 website/content/en/status/{howto.adoc => howto/_index.adoc} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-10-21 14:11:30 UTC
I thought that the commit in comment #2 would have fixed the issue, but it did not, although it worked fine testing with make run. I waited two hours thinking that the fix might require some time to apply, but still nothing.

I am then adding carlavilla and dbaio to CC. Hopefully they can help.

The issue might also be fixed by changing the link to howto/ in a link to howto/index.html, but I think avoiding calling index.html explicitly would be better style.
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-22 04:52:20 UTC
(In reply to Lorenzo Salvadore from comment #3 and Graham Perrin from comment #0)

… plus a change to the README, maybe: 

<https://github.com/freebsd/freebsd-doc/compare/main...grahamperrin:freebsd-doc:bug-267129.diff>

-    https://www.freebsd.org/news/status/howto.html
+    https://www.freebsd.org/news/status/howto/
Comment 5 Danilo G. Baio freebsd_committer freebsd_triage 2022-10-22 11:07:29 UTC
Hi.

It hit a regex to catch old reports; it's fixed now.

Regards.