File tree Expand file tree Collapse file tree
ja/docusaurus-plugin-content-docs/current/concepts
zh-Hans/docusaurus-plugin-content-docs/current/concepts
zh-Hant/docusaurus-plugin-content-docs/current/concepts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,9 +169,9 @@ routes and will not match each other. This matters because browsers resolve
169169relative paths differently depending on the trailing slash:
170170
171171| URL in address bar | Relative reference ` ./image.jpg ` resolves to |
172- | ---| ---|
173- | ` /about ` | ` /image.jpg ` |
174- | ` /about/ ` | ` /about/image.jpg ` |
172+ | ------------------ | -------------------------------------------- |
173+ | ` /about ` | ` /image.jpg ` |
174+ | ` /about/ ` | ` /about/image.jpg ` |
175175
176176If your component uses relative asset paths, make sure the route definition and
177177the links pointing to it agree on the trailing slash.
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ enum Route {
152152ルーティングでは末尾のスラッシュが区別されます。` /about ` と ` /about/ ` は異なるルートであり、互いにマッチしません。これはブラウザが末尾のスラッシュの有無に応じて相対パスを異なる方法で解決するため重要です:
153153
154154| アドレスバーの URL | 相対参照 ` ./image.jpg ` の解決先 |
155- | ---| ---|
156- | ` /about ` | ` /image.jpg ` |
157- | ` /about/ ` | ` /about/image.jpg ` |
155+ | ------------------ | ------------------------------- |
156+ | ` /about ` | ` /image.jpg ` |
157+ | ` /about/ ` | ` /about/image.jpg ` |
158158
159159コンポーネントで相対アセットパスを使用する場合は、ルート定義とそれを指すリンクの末尾のスラッシュが一致していることを確認してください。
160160
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ enum Route {
152152路由区分尾部斜杠。` /about ` 和 ` /about/ ` 是不同的路由,不会互相匹配。这很重要,因为浏览器根据尾部斜杠的有无以不同的方式解析相对路径:
153153
154154| 地址栏中的 URL | 相对引用 ` ./image.jpg ` 解析为 |
155- | ---| ---|
156- | ` /about ` | ` /image.jpg ` |
157- | ` /about/ ` | ` /about/image.jpg ` |
155+ | -------------- | ----------------------------- |
156+ | ` /about ` | ` /image.jpg ` |
157+ | ` /about/ ` | ` /about/image.jpg ` |
158158
159159如果您的组件使用相对资源路径,请确保路由定义和指向它的链接在尾部斜杠上保持一致。
160160
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ enum Route {
152152路由會區分尾部斜線。` /about ` 和 ` /about/ ` 是不同的路由,不會互相匹配。這很重要,因為瀏覽器根據尾部斜線的有無以不同的方式解析相對路徑:
153153
154154| 網址列中的 URL | 相對引用 ` ./image.jpg ` 解析為 |
155- | ---| ---|
156- | ` /about ` | ` /image.jpg ` |
157- | ` /about/ ` | ` /about/image.jpg ` |
155+ | -------------- | ----------------------------- |
156+ | ` /about ` | ` /image.jpg ` |
157+ | ` /about/ ` | ` /about/image.jpg ` |
158158
159159如果您的元件使用相對資源路徑,請確保路由定義和指向它的連結在尾部斜線上保持一致。
160160
You can’t perform that action at this time.
0 commit comments