File tree Expand file tree Collapse file tree
user_guide_src/source/outgoing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Redirect to a URI path
7878
7979When you want to pass a URI path (relative to baseURL), use ``redirect()->to() ``:
8080
81- .. literalinclude :: ../general/common_functions/005 .php
81+ .. literalinclude :: ./response/028 .php
8282 :lines: 2-
8383
8484.. note :: If there is a fragment in your URL that you want to remove, you can use the refresh parameter in this function.
@@ -90,22 +90,22 @@ Redirect to a Defined Route
9090When you want to pass a :ref: `route name <using-named-routes >` or Controller::method
9191for :ref: `reverse routing <reverse-routing >`, use ``redirect()->route() ``:
9292
93- .. literalinclude :: ../general/common_functions/013 .php
93+ .. literalinclude :: ./response/029 .php
9494 :lines: 2-
9595
9696When passing an argument into the function, it is treated as a route name or
9797Controller::method for reverse routing, not a relative/full URI,
9898treating it the same as using ``redirect()->route() ``:
9999
100- .. literalinclude :: ../general/common_functions/006 .php
100+ .. literalinclude :: ./response/030 .php
101101 :lines: 2-
102102
103103Redirect Back
104104-------------
105105
106106When you want to redirect back, use ``redirect()->back() ``:
107107
108- .. literalinclude :: ../general/common_functions/014 .php
108+ .. literalinclude :: ./response/031 .php
109109 :lines: 2-
110110
111111.. note :: ``redirect()->back()`` is not the same as browser "back" button.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments