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

How to provider redirect for pages #161

Open
nabokihms opened this issue Jan 16, 2024 · 2 comments
Open

How to provider redirect for pages #161

nabokihms opened this issue Jan 16, 2024 · 2 comments

Comments

@nabokihms
Copy link
Member

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.

@nabokihms
Copy link
Member Author

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

@nate-double-u
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants