Skip to content

How to provider redirect for pages #161

Open

Description

@nabokihms

The name of the page was changed. During #156 we renamed the id-token page to the token page.

I'd like to have the ability to provide a redirect from the old page to not break previously worked links.

Activity

  1. nabokihms commented on Jan 16, 2024

    @nabokihms
    MemberAuthor

    @nate-double-u hello! Can you help with one? It seems like the docs framework should have this capability out of the box.

  2. nate-double-u commented on Jan 18, 2024

    @nate-double-u
    Contributor

    There's a couple ways of doing it, you're running on netlify, so I'd follow one of their methods: https://docs.netlify.com/routing/redirects/

    etcd uses an index redirect file in layouts (https://github.com/etcd-io/website/blob/main/layouts/index.redirects), I think this needs an update in the config, but forgive me i don't recall which. That said, to start I think the [[redirects]] in the config is probably the easiest way (but it gets a little unmanageable after you have more than a couple redirects, which is why i tend to use the separate file.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions