@@ -105,10 +105,11 @@ Redirecting after Success
105
105
You can change where the login form redirects after a successful login using
106
106
the various config options. By default the form will redirect to the URL the
107
107
user requested (i.e. the URL which triggered the login form being shown).
108
- For example, if the user requested ``http://www.example.com/admin/post/18/edit ``
109
- then after he/she will eventually be sent back to ``http://www.example.com/admin/post/18/edit ``
110
- after successfully logging in. This is done by storing the requested URL
111
- in the session. If no URL is present in the session (perhaps the user went
108
+ For example, if the user requested ``http://www.example.com/admin/post/18/edit ``,
109
+ then after they successfully logs in, they will eventually be sent back to
110
+ ``http://www.example.com/admin/post/18/edit ``.
111
+ This is done by storing the requested URL in the session.
112
+ If no URL is present in the session (perhaps the user went
112
113
directly to the login page), then the user is redirected to the default page,
113
114
which is ``/ `` (i.e. the homepage) by default. You can change this behavior
114
115
in several ways.
@@ -155,7 +156,7 @@ the following config:
155
156
),
156
157
));
157
158
158
- Now, when no URL is set in the session users will be sent to ``/admin ``.
159
+ Now, when no URL is set in the session, users will be sent to ``/admin ``.
159
160
160
161
Always Redirect to the Default Page
161
162
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -329,7 +330,7 @@ option to another value.
329
330
Redirecting on Login Failure
330
331
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
331
332
332
- In addition to redirect the user after a successful login, you can also set
333
+ In addition to redirecting the user after a successful login, you can also set
333
334
the URL that the user should be redirected to after a failed login (e.g. an
334
335
invalid username or password was submitted). By default, the user is redirected
335
336
back to the login form itself. You can set this to a different URL with the
0 commit comments