that it doesnt give you the hostname/port is ofcourse a bug.... print out these variables:
getRequestCycle().urlFor(CurrentPage.class ,pps).toString() I think that one time it will give you just the url and one time ../.././CurrentPage i guess that is your problem but you need to debug a bit more why it gives you that ../../xxxx On Sun, Jun 7, 2009 at 20:14, smallufo <small...@funp.com> wrote: > Is there a plan to make behavior of RequestUtils.toAbsolutePath > (inside/outside AJAX) identical ? > > If no , the only way to get the "correct" absolute URL in the AJAX > onClick() > is pre-appending host name / port / context name ... > I think it is so cumbersome.... > > > 2009/6/8 Martin Makundi <martin.maku...@koodaripalvelut.com> > > > The problem is that when you have a bookmarkable page with parameters, > > the url looks like this: > > > > http://www.mydomain.com/myapp/MyPage/param1/value1/param2/value2 > > > > The parameters are not part of the url path, but the "toAbsolutePath" > > code assumes them to be. > > > > It would be better if it would adapt to the used url encoding and > > strip page parameters. > > > > ** > > Martin > > >