Skip to content

Commit 1add05a

Browse files
authored
Merge pull request #7629 from kenjis/fix-docs-RedirectException
docs: fix incorrect description on RedirectException
2 parents 08c046e + 19f88fb commit 1add05a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

user_guide_src/source/general/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ forcing a redirect to a specific route or URL:
109109

110110
.. literalinclude:: errors/010.php
111111

112-
``$route`` may be a named route, relative URI, or a complete URL. You can also supply a
112+
``$uri`` may be a URI path relative to baseURL, or a complete URL. You can also supply a
113113
redirect code to use instead of the default (``302``, "temporary redirect"):
114114

115115
.. literalinclude:: errors/011.php
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
throw new \CodeIgniter\Router\Exceptions\RedirectException($route);
3+
throw new \CodeIgniter\Router\Exceptions\RedirectException($uri);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
throw new \CodeIgniter\Router\Exceptions\RedirectException($route, 301);
3+
throw new \CodeIgniter\Router\Exceptions\RedirectException($uri, 301);

0 commit comments

Comments
 (0)