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

Fix Nix manual links from search results #989

Closed lucperkins closed 1 month ago

lucperkins commented 1 month ago

At the moment, links to the Nix manual in search results are broken. For example, if I search "nix.conf bash-prompt-prefix" in Google I get this link, which 404s:

https://nixos.org/manual/nix/stable/command-ref/conf-file

Removing /stable, however, yields a working link:

https://nixos.org/manual/nix/command-ref/conf-file

I'm not 100% sure that this is the right redirect approach in Netlify but I at least wanted to venture a possible solution.

proofconstruction commented 1 month ago

I love that we're all working on this in parallel. See https://github.com/NixOS/nixos-homepage/issues/1448 for more for additional context

lucperkins commented 1 month ago

@proofconstruction

image

fricklerhandwerk commented 1 month ago

Addressed downstream where I broke it: https://github.com/NixOS/nixos-homepage/pull/1451