Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
c33dbbe9
Unverified
Commit
c33dbbe9
authored
Feb 11, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
登出重定向
parent
9ea3e9c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
src/main/java/org/b3log/solo/processor/IndexProcessor.java
src/main/java/org/b3log/solo/processor/IndexProcessor.java
+1
-6
src/main/java/org/b3log/solo/service/UserQueryService.java
src/main/java/org/b3log/solo/service/UserQueryService.java
+3
-3
No files found.
src/main/java/org/b3log/solo/processor/IndexProcessor.java
View file @
c33dbbe9
...
@@ -191,13 +191,8 @@ public class IndexProcessor {
...
@@ -191,13 +191,8 @@ public class IndexProcessor {
Solos
.
logout
(
httpServletRequest
,
context
.
getResponse
());
Solos
.
logout
(
httpServletRequest
,
context
.
getResponse
());
String
referer
=
context
.
header
(
"referer"
);
if
(
StringUtils
.
isBlank
(
referer
)
||
!
isInternalLinks
(
referer
))
{
referer
=
Latkes
.
getServePath
();
}
Solos
.
addGoogleNoIndex
(
context
);
Solos
.
addGoogleNoIndex
(
context
);
context
.
sendRedirect
(
referer
);
context
.
sendRedirect
(
Latkes
.
getServePath
()
);
}
}
/**
/**
...
...
src/main/java/org/b3log/solo/service/UserQueryService.java
View file @
c33dbbe9
...
@@ -215,9 +215,9 @@ public class UserQueryService {
...
@@ -215,9 +215,9 @@ public class UserQueryService {
*/
*/
public
String
getLogoutURL
()
{
public
String
getLogoutURL
()
{
String
to
=
Latkes
.
getServePath
();
String
to
=
Latkes
.
getServePath
();
to
=
URLs
.
encode
(
to
+
"/"
);
to
=
URLs
.
encode
(
to
);
return
Latkes
.
getContextPath
()
+
"/logout?
goto
="
+
to
;
return
Latkes
.
getContextPath
()
+
"/logout?
referer
="
+
to
;
}
}
/**
/**
...
@@ -230,6 +230,6 @@ public class UserQueryService {
...
@@ -230,6 +230,6 @@ public class UserQueryService {
String
to
=
Latkes
.
getServePath
();
String
to
=
Latkes
.
getServePath
();
to
=
URLs
.
encode
(
to
+
redirectURL
);
to
=
URLs
.
encode
(
to
+
redirectURL
);
return
Latkes
.
getContextPath
()
+
"/start?
goto
="
+
to
;
return
Latkes
.
getContextPath
()
+
"/start?
referer
="
+
to
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment