Skip to content

Commit ccfbb3e

Browse files
committed
docs: add the notice of redirect()->to() function in user guide.
1 parent 6c346b6 commit ccfbb3e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/general/common_functions.rst

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

337+
.. note:: Usually this method will not clean up the fragment in the URL.
338+
If there is a fragment in your URL that you want to remove, you can use the refresh parameter in this function.
339+
Like ``return redirect()->to('to', null, 'refresh');```.
340+
337341
**Redirect to a Defined Route**
338342

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

0 commit comments

Comments
 (0)