Skip to content

Commit

Permalink
preserve complete URLs if context is set to
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed May 19, 2015
1 parent 9969288 commit 6df92d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void appendAttributesToResponse(WOResponse response, WOContext context) {
boolean generatingCompleteURLs = context.doesGenerateCompleteURLs();
boolean requestIsSecure = context.secureMode();
boolean switchToCompleteURLs = secure ^ requestIsSecure;
if (switchToCompleteURLs) {
if (switchToCompleteURLs && !generatingCompleteURLs) {
context.generateCompleteURLs();
}
try {
Expand Down Expand Up @@ -407,7 +407,7 @@ else if (_directActionName != null || _actionClass != null) {
}
}
finally {
if (switchToCompleteURLs) {
if (switchToCompleteURLs && !generatingCompleteURLs) {
context.generateRelativeURLs();
}
}
Expand Down

0 comments on commit 6df92d9

Please sign in to comment.