Skip to content

Commit

Permalink
i18n(ko-KR): update routing.mdx (#8899)
Browse files Browse the repository at this point in the history
* i18n(ko-KR): create `routing.mdx`

* fix: broken links

---------

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
  • Loading branch information
jsparkdev and yanthomasdev committed Jul 23, 2024
1 parent 6ccab24 commit 4f091f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/docs/ko/guides/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ export default defineConfig({
});
```

이러한 리디렉션은 파일 기반 경로와 동일한 규칙을 따릅니다. 새 경로와 이전 경로 모두에 동일한 매개변수가 포함되어 있는 한 동적 경로가 허용됩니다. 예를 들면 다음과 같습니다.
이러한 리디렉션은 [파일 기반 라우팅과 동일한 우선순위 규칙](#경로-우선순위)을 따르며, 프로젝트에서 같은 이름의 기존 페이지 파일보다 항상 우선순위가 낮습니다. 예를 들어 프로젝트에 `src/pages/old-page.astro` 파일이 포함되어 있으면 `/old-page``/new-page`로 리디렉션되지 않습니다.

새 경로와 이전 경로에 모두 동일한 매개변수가 포함되어 있는 한 동적 경로는 허용됩니다.

```js
{
Expand Down Expand Up @@ -317,6 +319,7 @@ Astro는 페이지를 빌드하는 데 어떤 경로를 사용해야 하는지
- 명명된 매개변수를 사용하는 동적 경로는 나머지 매개변수보다 우선합니다. 예: `/posts/[page].astro``/posts/[...slug].astro`보다 우선합니다.
- 사전 렌더링된 동적 경로는 서버 동적 경로보다 우선합니다.
- 엔드포인트가 페이지보다 우선합니다.
- 파일 기반 경로가 리디렉션보다 우선합니다.
- 위 규칙 중 어느 것도 순서를 결정하지 않으면 노드 설치의 기본 로케일을 기준으로 경로가 알파벳순으로 정렬됩니다.

위 예시에서 규칙이 요청된 URL을 HTML 작성에 사용된 경로와 일치시키는 방법에 대한 몇 가지 예시는 다음과 같습니다.
Expand Down

0 comments on commit 4f091f8

Please sign in to comment.