Ondrej Zizka wrote:
> Hi all,
> 
> I'm wondering if I can refer to static files just from HTML, while
> keeping it aware of the context.
> 
> Example:
> 
> .jar contains /favicon.ico .
> I'd like to refer to it  by <link rel="..." href="/favicon.ico">.
> But when the app is at non-root context, this breaks as it still
> points to http://host/favicon.ico .

Have you tried to use simply href="favicon.ico"?

AFAIK, Wicket adjusts that relativ URL accordingly when you mount
your pages to an application "sub-directory". (I fought it changing
such URLs some time ago.)

HTH,
        Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to