Skip to content

Commit d28bc71

Browse files
committed
ActionContext.loginAndRedirect does not trigger redirect to happen actframework#648
1 parent ebec56d commit d28bc71

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ActFramework Change Log
22

33
**1.8.8**
4+
* `ActionContext.loginAndRedirect` does not trigger redirect to happen #648
45
* Add act version info in the error page in dev mode #639
56
* JSON Writer shall use default date/time pattern setting when i18n is not enabled - related to #645
67
* Enum resolving - support non-exact keyword based matching #643

src/main/java/act/app/ActionContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ public void loginAndRedirectBack(String username, String defaultLandingUrl) {
984984
*/
985985
public void loginAndRedirect(String username, String url) {
986986
login(username);
987-
redirect(url);
987+
throw redirect(url);
988988
}
989989

990990
/**

0 commit comments

Comments
 (0)