Skip to content

Commit 7d4784e

Browse files
committed
Correct path in redirection example
1 parent b48d544 commit 7d4784e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/5.x/system/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ return [
352352
];
353353
```
354354

355-
…behaves differently depending on whether or not a site exists with the base path `corporate`. _Without_, it would redirect normally (`/corporate/team` to `/about-us`), but _with_, requests to `/corporate/team` would actually end up at `/corporate/about`, because Craft tried to route the request in the “Corporate” site context.
355+
…behaves differently depending on whether or not a site exists with the base path `corporate`. _Without_, it would redirect normally (`/corporate/team` to `/about-us`), but _with_, requests to `/corporate/team` would actually end up at `/corporate/about-us`, because Craft tried to route the request in the “Corporate” site context.
356356

357357
To avoid this ambiguity, prefix the destination with a slash (`/`) to make it an “absolute” path:
358358

0 commit comments

Comments
 (0)