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

Missing rec-expression anchor redirect and inquiry into redirect logic #971

Open
stablejoy opened this issue Apr 24, 2024 · 0 comments
Open
Labels
site Improvements to the site infrastructure or content presentation

Comments

@stablejoy
Copy link
Contributor

Observations

I was searching to learn about rec as an anti-pattern and then at https://discourse.nixos.org/t/avoid-rec-expresions-in-nixpkgs/8293 I found a permalink that leads to page not found.

Problem

When I look at the _redirect file from nix.dev this line /anti-patterns/language /recipes/best-practices 301 looks confusing to me since /best-practices should be under /guides and not /recipes. The netlify doc that explains the syntax for the _redirects file says:

In a _redirects file, each redirect rule must be listed on a separate line, with the original path followed by the new path or URL.

So why does the new path as well looks like anchor redirect? This particular redirect has been added in #633

When I go to the new redirect https://nix.dev/recipes/best-practices it redirects the recipes to guides.

Approaches
Maybe the new redirect is being redirected to the correct place somewhere else in the file. I'm looking into it

Willing to help?
Always

Priorities

Add 👍 to issues you find important.

@stablejoy stablejoy added the site Improvements to the site infrastructure or content presentation label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Improvements to the site infrastructure or content presentation
Projects
None yet
Development

No branches or pull requests

1 participant