Skip to content

Commit 6aa142d

Browse files
authored
Clarify routing instructions and simplify hint
Updated the wording for clarity and removed redundant hint.
1 parent a5951e3 commit 6aa142d

File tree

1 file changed

+5
-5
lines changed
  • 17/umbraco-cms/customizing/foundation

1 file changed

+5
-5
lines changed

17/umbraco-cms/customizing/foundation/routes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ Depending on which section you are working on, there are different options:
1919

2020
### Building routing
2121

22-
Almost any component can host routable sub-components by defining a list of routes and render a `umb-router-slot` element. Let's assume we have a **custom section** with pathname `custom-section` and a **section view** with pathname `organization`. In this context we can create an element with routes, like this:
22+
Almost any component can host routable sub-components by defining a list of routes and rendering a `umb-router-slot` element. Let's assume we have a **custom section** with pathname `custom-section` and a **section view** with pathname `organization`. In this context, we can create an element with routes, like shown below.
23+
24+
{% hint style="info" %}
25+
The order in which the routes are defined is important as the first match will be used. So make sure to add more specific routes in the beginning.
26+
{% endhint %}
2327

2428
```typescript
2529
@state()
@@ -49,10 +53,6 @@ _routes: UmbRoute[] = [
4953
];
5054
```
5155

52-
{% hint style="info" %}
53-
The order in which the routes are defined is important as the first match will be used. So make sure to add more specific routes in the beginning.
54-
{% endhint %}
55-
5656
In the render method of the element, render the `umb-router-slot`:
5757

5858
```html

0 commit comments

Comments
 (0)