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

website: redirect previous releases to the latest patch release #4598

Merged

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Apr 20, 2022

This will result in the _redirects page having a bunch of entries like this:

# previous patch versions
/docs/v0.38.0/* /docs/v0.38.1/:splat
/docs/v0.37.1/* /docs/v0.37.2/:splat
/docs/v0.37.0/* /docs/v0.37.2/:splat
/docs/v0.36.0/* /docs/v0.36.1/:splat
/docs/v0.34.1/* /docs/v0.34.2/:splat
/docs/v0.34.0/* /docs/v0.34.2/:splat
/docs/v0.33.0/* /docs/v0.33.1/:splat
/docs/v0.32.0/* /docs/v0.32.1/:splat

👉 https://docs.netlify.com/routing/redirects/redirect-options/#splats

Fixes #4225.

@srenatus srenatus force-pushed the sr/website/old-version-redirects branch from 74a5c30 to 155c644 Compare April 20, 2022 10:02
@srenatus srenatus marked this pull request as ready for review April 20, 2022 10:02
@srenatus srenatus changed the title website: old version redirects website: redirect previous releases to the latest patch release Apr 20, 2022
@srenatus srenatus marked this pull request as draft April 20, 2022 12:50
…elease

This will result in the _redirects page having a bunch of entries like this:

    # previous minor versions
    /docs/v0.38.0/* /docs/v0.38.1/:splat
    /docs/v0.37.1/* /docs/v0.37.2/:splat
    /docs/v0.37.0/* /docs/v0.37.2/:splat
    /docs/v0.36.0/* /docs/v0.36.1/:splat
    /docs/v0.34.1/* /docs/v0.34.2/:splat
    /docs/v0.34.0/* /docs/v0.34.2/:splat
    /docs/v0.33.0/* /docs/v0.33.1/:splat
    /docs/v0.32.0/* /docs/v0.32.1/:splat

Fixes open-policy-agent#4225.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus srenatus force-pushed the sr/website/old-version-redirects branch from 155c644 to 061d7d4 Compare April 21, 2022 07:37
@srenatus srenatus marked this pull request as ready for review April 21, 2022 07:38
@srenatus
Copy link
Contributor Author

Will merge when greenish

@srenatus srenatus merged commit 405777c into open-policy-agent:main Apr 21, 2022
@srenatus srenatus deleted the sr/website/old-version-redirects branch April 21, 2022 07:46
rokkiter pushed a commit to rokkiter/opa that referenced this pull request Apr 26, 2022
…elease (open-policy-agent#4598)

This will result in the _redirects page having a bunch of entries like this:

    # previous minor versions
    /docs/v0.38.0/* /docs/v0.38.1/:splat
    /docs/v0.37.1/* /docs/v0.37.2/:splat
    /docs/v0.37.0/* /docs/v0.37.2/:splat
    /docs/v0.36.0/* /docs/v0.36.1/:splat
    /docs/v0.34.1/* /docs/v0.34.2/:splat
    /docs/v0.34.0/* /docs/v0.34.2/:splat
    /docs/v0.33.0/* /docs/v0.33.1/:splat
    /docs/v0.32.0/* /docs/v0.32.1/:splat

Fixes open-policy-agent#4225.

Signed-off-by: Stephan Renatus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

website: keep previous patch release versions' URLs intact
1 participant