Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix more broken URLs #1486

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions public/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,27 +197,45 @@
force = true

[[redirects]]
# these rather old links are still used in the Nixpkgs manual
from = "/nix/manual/*"
from = "/manual/nix/stable/*"
to = "https://nix.dev/manual/nix/stable/:splat"
status = 302
force = true

[[redirects]]
from = "/manual/nix/*"
from = "/manual/nix/unstable/*"
to = "https://nix.dev/manual/nix/latest/:splat"
status = 302
force = true

[[redirects]]
from = "/manual/nix/stable/*"
to = "https://nix.dev/manual/nix/latest/:splat"
# catch links to the top-level
from = "/manual/nix"
# this must not have a trailing slash!
# otherwise, CSS won't be loaded
to = "https://nix.dev/manual/nix"
status = 302
force = true

[[redirects]]
from = "/manual/nix/unstable/*"
to = "https://nix.dev/manual/nix/development/:splat"
from = "/manual/nix/*"
to = "https://nix.dev/manual/nix/:splat"
status = 302
force = true

# these rather old links are still used in the Nixpkgs manual
[[redirects]]
# catch links to the top-level
from = "/nix/manual"
# this must not have a trailing slash!
# otherwise, CSS won't be loaded
to = "https://nix.dev/manual/nix"
status = 302
force = true

[[redirects]]
from = "/nix/manual/*"
to = "https://nix.dev/manual/nix/:splat"
status = 302
force = true

Expand Down