NixOS / nix.dev

Official documentation for getting things done with Nix.
https://nix.dev
Creative Commons Attribution Share Alike 4.0 International
2.26k stars 238 forks source link

Redirect (stable/unstable) issues from nixos.org #1006

Closed zaiquiriw closed 2 weeks ago

zaiquiriw commented 3 weeks ago

Observations

When trying to use old stable or unstable redirects, the page is not found. (Found while browsing nixpill https://github.com/NixOS/nix-pills/issues/250)

I've found that nixos.org/manual/nix/stable goes to nix.dev/manual/nix/2.22/stable instead of (I assume) the preferred nix.dev/manual/nix/2.18.

Ex. https://nixos.org/manual/nix/stable/command-ref/nix-env Redirects to: https://nix.dev/manual/nix/2.22/stable/command-ref/nix-env

Related issues:

Problem

I'm unsure. I believe there is work being done trying to fix the way redirects work (https://github.com/NixOS/nix.dev/pull/999 this pull request) to address preexisting issues with redirects.

Current Observed Redirects: https://nix.dev/manual/nix/unstable/ -> https://hydra.nixos.org/build/263397466/download/1/manual/ https://nix.dev/manual/nix/stable/ -> https://nix.dev/manual/nix/2.18/

Approaches

I wanted to dig into this but unfortunately got quite busy half way though. I'll comment if I get back to looking at this.

Willing to help?

I'm afraid I don't have much experience with how redirects are handled.

Priorities

Add :+1: to issues you find important.