Hi Juergen,

the class that adds the '/' is 
wicket.markup.parser.filter.PrependContextPathHandler. it adds the 
application's context path to all href attributes.

the thing is, it doesn't work with relative paths, as the one we're using. if 
my application is at /foo, and i have a page in /foo/bar/page.html, and it uses 
<link> with href=../zoo/my.css, then adding /foo/ will create an invalid link 
element.

i think it should either check the path is not relative to the page, or, always 
use the page's path.

ittay



Juergen Donnerstag wrote:
> And this is your base page? Would you please a junit test case.
> 
> Juergen
> 
> On 6/15/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
>> (i've sent this an hour ago, but can's see it on the list. so i'm resending, 
>> sorry if it appears twice)
>>
>>
>> i'm using markup inheritance with head contribution:
>> <wicket:head>
>> <link href="../include/global_en.css" rel="stylesheet" type="text/css">
>> ....
>>
>> the output is:
>> <head>
>> <link href="/../include/global_en.css" type="text/css" rel="stylesheet">
>>
>> notice that the href now is absolute :-(
>>
>> thanks,
>> ittay
>>
>> --
>> ===================================
>> Ittay Dror,
>> Chief architect, openQRM TL,
>> R&D, Qlusters Inc.
>> [EMAIL PROTECTED]
>> +972-3-6081994 Fax: +972-3-6081841
>>
>> http://www.openQRM.org
>> - Keeps your Data-Center Up and Running
>>
>>
>>
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-- 
===================================
Ittay Dror, 
Chief architect, openQRM TL, 
R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to