Skip to content

rubydoc: sidebar redirects with wrong url #21588

@GunniBusch

Description

@GunniBusch

What were you trying to do (and why)?

If you go to the rubydocs and go to a nested page, you cant use the sidebar anymore to go to ANY other page.

Bildschirmaufnahme.2026-02-17.um.20.09.54.mov

What happened (include all command output)?

Image Image Image

Why did this happen.

The issue occurs because of this.

When you first open the rubydoc, and only go to root level entries like https://docs.brew.sh/rubydoc/Array.html, and go to another root level page, everything works, (eg going to https://docs.brew.sh/rubydoc/Formula.html).

But when you then go to a nested page like https://docs.brew.sh/rubydoc/Formula/FormulaConflict.html the problems occur. Now if you go to any other page like as an example the Array.html, instead of getting redirected to the First url from above, you will instead be redirected to https://docs.brew.sh/rubydoc/Formula/Array.html (in this example).

Also Since it will include the folder name always, even going to another page inside that folder or to the same page doesn't work since in this example the resulting url would be https://docs.brew.sh/rubydoc/Formula/Formula/FormulaConflict.html. This is not a type by me.

PS:

I can work on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions