Skip to content

Commit

Permalink
Merge branch 'main' into translation/transaction-spanish-translation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim authored Oct 11, 2023
2 parents 8775e86 + fbd9723 commit a118194
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/basics/routing.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Für eine Weiterleitung kann es verschiedenste Gründe geben. Mit der Methode *r
req.redirect(to: "/some/new/path")

/// redirect a page permanently
req.redirect(to: "/some/new/path", type: .permanent)
req.redirect(to: "/some/new/path", redirectType: .permanent)
```

Es gibt verschiedene Arten von Weiterleitungen:
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/routing.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ req.redirect(to: "/some/new/path")
También puedes especificar el tipo de redirección, por ejemplo para redirigir una página de forma permanente (para que su SEO se actualice correctamente) usa:

```swift
req.redirect(to: "/some/new/path", type: .permanent)
req.redirect(to: "/some/new/path", redirectType: .permanent)
```

Los diferentes `RedirectType` son:
Los diferentes `Redirect` son:

* `.permanent` - devuelve una redirección **301 Moved Permanently**
* `.normal` - devuelve una redirección **303 See Other**. Este es el valor por defecto de Vapor y le dice al cliente que siga la redirección con una petición **GET**.
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ req.redirect(to: "/some/new/path")
You can also specify the type of redirect, for example to redirect a page permanently (so that your SEO is updated correctly) use:

```swift
req.redirect(to: "/some/new/path", type: .permanent)
req.redirect(to: "/some/new/path", redirectType: .permanent)
```

The different `RedirectType`s are:
The different `Redirect`s are:

* `.permanent` - returns a **301 Permanent** redirect
* `.normal` - returns a **303 see other** redirect. This is the default by Vapor and tells the client to follow the redirect with a **GET** request.
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/routing.nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ req.redirect(to: "/some/new/path")
U kunt ook het type omleiding specificeren, bijvoorbeeld om een pagina permanent om te leiden (zodat uw SEO correct wordt bijgewerkt) gebruiken we:

```swift
req.redirect(to: "/some/new/path", type: .permanent)
req.redirect(to: "/some/new/path", redirectType: .permanent)
```

De verschillende `RedirectType`s zijn:
De verschillende `Redirect`s zijn:

* `.permanent` - geeft een **301 Permanent** omleiding.
* `.normal` - retourneert een **303 see other** redirect. Dit is de standaard door Vapor en vertelt de client om de omleiding te volgen met een **GET** verzoek.
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/routing.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,10 @@ req.redirect(to: "/some/new/path")
你可以设置重定向的类型,比如说永久的重定向一个页面(来使你的 SEO 正确的更新),请使用:

```swift
req.redirect(to: "/some/new/path", type: .permanent)
req.redirect(to: "/some/new/path", redirectType: .permanent)
```

不同的 `RedirectType` 有:
不同的 `Redirect` 有:

* `.permanent` - 返回一个 **301 Permanent** 重定向。
* `.normal` - 返回一个 **303 see other** 重定向。这是 Vapor 的默认行为,来告诉客户端去使用一个 **GET** 请求来重定向。
Expand Down

0 comments on commit a118194

Please sign in to comment.