This sure seems like it should be a simple problem, but I sure can't
find the answer.

I have a simple CometActor page with an ajaxButton on it.  I want the
button to go to a different page.  No problem - except when I deploy
it into a jetty container where it isn't in the root context, it
doesn't work!

            SHtml.ajaxButton(
                    Text("Home"),
                    () => RedirectTo("/index")
            ),

works fine in "mvn jetty:run" but when deployed it doesn't get the URL
re-writing facility?

Tried RedirectTo(S.hostAndPath+"/index") - no help.
and RedirectTo(S.contextPath+"/index") - no help.

I even found some code here which seemed to suggest a fix:
    val loc = (for {
       loc <- SiteMap.findLoc("Login")
       path <- loc.createDefaultPath
    } yield path.text) openOr "/"
But this doesn't compile in the 2.0-M1 world...
Shouldn't this be simple?

Thanks in advance,
Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to