Skip to content

Commit

Permalink
Rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 17, 2024
1 parent 91d60f7 commit d4f9e5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions guides/hosting/configurations/framework/routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public function index(Request $request, SalesChannelContext $context): Response
}
```

It defines that your wishlist page is available at `/wishlist`. This is fine for an english only shop, but for a multilanguage shop, you might want to have a different route for each language.
It defines that your wishlist page is available at `/wishlist`. This is fine for an English-only shop, but for a multilingual shop, you might want to have a different route for each language.

For example, you could have `/wishlist` for english and `/merkliste` for german.

## Configuration

To easily configure those routes, you can use the `routes.yaml` file in ROOT/config/routes/routes.yaml. This file is loaded by Symfony and allows you to define your custom routes.
To easily configure those routes, you can use the `routes.yaml` file in ROOT/config/routes/routes.yaml. Symfony loads this file, which allows you to define your custom `paths`, in our case, for the wishlist index page.

```yaml
frontend.wishlist.page:
Expand All @@ -53,4 +53,6 @@ frontend.wishlist.page:
seo: false
```
You can configure the `path` with the **locales** (for example, `de-DE`) your shop uses.

If you want to learn more about routes in Symfony, check out the [Symfony documentation](https://symfony.com/doc/current/routing.html#creating-routes-as-attributes).

0 comments on commit d4f9e5c

Please sign in to comment.