Skip to content

Commit 38a632a

Browse files
committed
translate api/redirect.md
1 parent 0645e8f commit 38a632a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/ja/api/redirect.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# `router.redirect(redirectMap)`
22

3-
Configures global redirection rules for the router. Global redirections are performed before matching the current path. If a redirection is found, the originally visited path will simply be skipped and will not leave a record in the history.
3+
ルーターに対してグローバルリダイレクションのルールを設定します。グローバルリダイレクションは現在のパスにマッチする前に実行されます。リダイレクションが見つかった場合、元々のアクセスパスは単にスキップされ、ブラウザの履歴にレコードを残すことはありません。
44

5-
### Arguments
5+
### 引数
66

77
- `redirectMap: Object`
88

9-
The redirect map object should be in the form of `{ fromPath: toPath, ... }`. The paths can contain dynamic segments.
9+
リダイレクトマップオブジェクトは `{ fromPath: toPath, ... }` の形にする必要があります。パスは動的セグメントを含むことができます。
1010

11-
### Example
11+
###
1212

1313
``` js
1414
router.rediect({
1515

16-
// redirect any navigation to /a to /b
16+
// /a への全てのナビゲーションを /b にリダイレクト
1717
'/a': '/b',
1818

19-
// redirect can contian dynamic segments
20-
// the dynamic segment names must match
19+
// リダイレクトは動的セグメント名がマッチする必要がある
20+
// 動的セグメントを含むことができます
2121
'/user/:userId': '/profile/:userId'
2222
})
2323
```

0 commit comments

Comments
 (0)