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

2009/6/7 Johan Compagner <jcompag...@gmail.com>:
> No it is just the request uri and the request uri of the ajax call will
> always be
>
> http://foo.bar:8080/app/?xxxxxx=yyyyy
>
>
> so that is correct.
>
> And looking at the code you also can see that that last piece CurrentPage is
> stripped out (as it should) in the make to absolute path code
>
> Just Debug it
>
>
>
>
> On Sun, Jun 7, 2009 at 19:03, smallufo <small...@funp.com> wrote:
>
>> 2009/6/7 Johan Compagner <jcompag...@gmail.com>
>>
>> > >
>> > >
>> > >
>> > >
>> > > a1 = http://foo.bar:8080/app/CurrentPage
>> > > s1 = http://foo.bar:8080/app/CurrentPage
>> > >
>> > > a2 = http://foo.bar:8080/app/
>> > > s2 = http://CurrentPage/ <http://currentpage/> <http://currentpage/>
>> > >
>> > >
>> > > a1 , s1 are correct ,
>> > > a2 , s2 are totally wrong.
>> > >
>> >
>> >
>> >
>> > a1 , s1 en a2 are all correct.
>> >
>> > but why s2 is a result when a2 is the input for that toAbsolutePath is
>> > weird.
>>
>>
>> Why a2 is correct ?
>> I think a2 should be identical to a1 (and s1) ...
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to