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

redirect instructions #6107

Open
bc-devrev opened this issue Feb 20, 2025 · 0 comments
Open

redirect instructions #6107

bc-devrev opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
documentation Related to buildwithfern.com/learn product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@bc-devrev
Copy link

bc-devrev commented Feb 20, 2025

What's the issue?

Unclear explanation

URL of the documentation page (if applicable)

https://buildwithfern.com/learn/docs/building-and-customizing-your-docs/links-and-redirects

Describe the gap or issue

The example provided only works if there are no sub-paths.

In my case I needed to redirect everything under snap-in-development to snapin-development. The given example worked for snap-in-development/concepts but not for snapin-development/references/adaas.

There is a link to the regexp documentation but it was not clear to me how to apply it.

How should this be improved?

I think that my case would be common case, so I'd suggest changing the example to add a wildcard:

  - source: "/old-folder/:slug*" # <- using regex
    destination: "/new-folder/:slug*"
@bc-devrev bc-devrev added the documentation Related to buildwithfern.com/learn label Feb 20, 2025
@dannysheridan dannysheridan added the product/docs Fern Docs which builds and hosts a developer documentation site label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to buildwithfern.com/learn product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

3 participants