To run
jetty:start
Navigate to http://localhost:8080/myservice/
.
Notice application is running with myservice
context path and there is active comet session showing current date at the bottom of the page.
Do any action which results in redirect ie. sign-in, login or logout.
Browser location after redirect ends up being http://localhost:8080
.
Browser location after redirect should be http://localhost:8080/myservice/
(context path should be taken into account).
cometOnSessionLost
in lift.js
is redirecting to "/"
discarding any context path.
cometOnSessionLost: function() {
window.location.href = "/";
},
Add this into Boot.scala
(or uncomment this line):
LiftRules.noCometSessionCmd.default.set(() ⇒ JsRaw("window.location.href = '/myservice';"))
To make redirect with active comet actor work.
Make Lift take care of context path on user behalf to avoid this surprising behaviour.