Comments (2)
The paths your redirect from/to are always "local" to your site and should not include the locale path segment
/zh/
If you build your site in 2 locales
en
+zh
the 2 following redirects should be created:
/docs/kelly/v100/
->/docs/kelly/v100/intro
/zh/docs/kelly/v100/
->/zh/docs/kelly/v100/intro
You don't need to add 2 entries for the 2 redirects: Docusaurus will loop over your list of locales and create one redirect for each locale already.
I see, what you mean is that as soon as the redirection is created for the default language, then for other languages docusaurus will automatically search and apply the redirection settings.
Thank you!
from docusaurus.
The paths your redirect from/to are always "local" to your site and should not include the locale path segment /zh/
If you build your site in 2 locales en
+ zh
the 2 following redirects should be created:
/docs/kelly/v100/
->/docs/kelly/v100/intro
/zh/docs/kelly/v100/
->/zh/docs/kelly/v100/intro
You don't need to add 2 entries for the 2 redirects: Docusaurus will loop over your list of locales and create one redirect for each locale already.
from docusaurus.
Related Issues (20)
- Add support for versioned sidebars which are `.js` not `.json` HOT 3
- How to upgrade for curl get method HOT 1
- Docs has wrong npm start command HOT 2
- Blog author social platforms shorthands are not normalized for inline authors
- Blog authors page bugs for authors with 0 posts HOT 4
- npm2yarn converts command incorrectly for PNPM HOT 1
- Blog authors page is not using baseUrl when rendering a relative author.image_url HOT 5
- Footer links are too wide in mobile view which leads to misclicks HOT 1
- [@docusaurus/plugin-client-redirects] Not working with external links HOT 6
- plugin-pwa: Usage of placeholders in manifest.json allowing implementation of manifest.json for different deployment environments HOT 1
- Inconsistent File Handling Between Development and Build Processes HOT 3
- Do not transform static JS assets HOT 6
- Unicode in Navlinks broken on NodeJS 22 HOT 3
- `float`ing images overlap background of boxes (code boxes, admonitions, etc.) HOT 8
- How can docusaurus' 404 page be adapted to other language pages? HOT 6
- DocCardList element renders the wrong items HOT 1
- Adding `@babel/preset-react` to docusaurus does not enable "Support for the experimental syntax 'jsx'" HOT 3
- `@docusaurus/eslint-plugin` is not compatible with ESLint 9 HOT 4
- Update dependencies to non-vulnerable versions HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus.