Skip to content

Commit

Permalink
fix mutable shortlinks (#903)
Browse files Browse the repository at this point in the history
they were missing a response status code.

use 302 since the target URL is decidedly not permanent:
https://datatracker.ietf.org/doc/html/rfc9110#name-302-found
  • Loading branch information
fricklerhandwerk authored Feb 6, 2024
1 parent e0e2f95 commit 2720a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let
sed '/^#/d;/^$/d;s#^\(.*\) \(.*\) #/manual/nix/${version}\1 /manual/nix/${version}\2 #g' ${src version}/doc/manual/_redirects >> $out/_redirects
'';
shortlink = release: version: ''
echo /nix/manual/${release} /nix/manual/${version} >> $out/_redirects
echo /nix/manual/${release} /nix/manual/${version} 302 >> $out/_redirects
'';
versions = with pkgs.lib; lists.unique (attrsets.attrValues releases);
in
Expand Down

0 comments on commit 2720a41

Please sign in to comment.