it is relative to the current url in the browser

On Tue, Mar 25, 2008 at 12:38 PM, Java Programmer <[EMAIL PROTECTED]>
wrote:

> On Thu, Mar 20, 2008 at 4:39 PM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
> > you are worried about what is in the source?
> >  so you dont really need it for something else like in an email?
> >
> >  but wicket generates for itself relative urls
> >  if you need a full for yourself you can use RequestUtils.toAbsolutePath
>
> Hello,
> Thanks for answer, but I still have a problem with that links - I
> don't need them only for an email, I just don't understand why when I
> create bookmarkable link for the class/page i have to get an output as
> relative path.
> e.g.
> add(new BookmarkablePageLink("homepage", HomePage.class
> ).setAutoEnable(true));
> it render in HTML source as:
> <a href="../../../../page/HomePage/">Homepage</a>
> but in this case should just:
> <a href="/page/HomePage/">Homepage</a> because /page is a mount path
> for this package.
>
> Is it related to RelativePathPrefixHandler? Because it is appended in
> MarkupParser as appendMarkupFilter(new RelativePathPrefixHandler());,
> but where BookmarkabelPageLink use it (or Component itself)?
>
> Thanks for any help,
> Adr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to