Skip to content

Commit 3f0a198

Browse files
authored
Merge pull request #7450 from ping-yee/user-guide-add-redirect
docs: Add the notice to `redirect()->to()` function in user guide.
2 parents 6c346b6 + 114ab2b commit 3f0a198

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

user_guide_src/source/general/common_functions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ Miscellaneous Functions
334334
.. literalinclude:: common_functions/005.php
335335
:lines: 2-
336336

337+
.. note:: If there is a fragment in your URL that you want to remove, you can use the refresh parameter in this function.
338+
Like ``return redirect()->to('to', null, 'refresh');``.
339+
337340
**Redirect to a Defined Route**
338341

339342
When you want to pass a :ref:`route name <using-named-routes>` or Controller::method

0 commit comments

Comments
 (0)