Skip to content

Commit 03b83ba

Browse files
committed
Splitted one tip directive into two smaller tips
1 parent b223417 commit 03b83ba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

components/routing/hostname_pattern.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ instance, if you want to match both ``m.example.com`` and
179179
.. tip::
180180

181181
You can also use service parameters if you do not want to hardcode the
182-
hostname. Make sure you also include a default option for the ``domain``
183-
placeholder, otherwise you need to include a domain value each time you
184-
generate a URL using the route.
182+
hostname:
185183

186184
.. configuration-block::
187185

@@ -238,6 +236,12 @@ instance, if you want to match both ``m.example.com`` and
238236
239237
return $collection;
240238
239+
.. tip::
240+
241+
Make sure you also include a default option for the ``domain`` placeholder,
242+
otherwise you need to include a domain value each time you generate
243+
a URL using the route.
244+
241245
.. _component-routing-host-imported:
242246

243247
Using Host Matching of Imported Routes

0 commit comments

Comments
 (0)