Logged a bug: https://issues.apache.org/jira/browse/WICKET-1624
-Doug Doug Donohoe wrote: > > In this case I'm not using wicket:link. I just have this in my HTML file: > > <link href="styles.css" rel="stylesheet" type="text/css"> > > Wicket is magically transforming that on its own, it seems. > > I have run into similar issues to WICKET-1428 with some of the > mount-encoding strategies. Basically, if any of my params have "/" in > them or happen to be "." or "..", it causes problems. I'm trying to > figure out a fix for that now as well. > > -Doug > > > jwcarman wrote: >> >> Are you using <wicket:link> with "parent-relative" links? If so, check >> out: >> >> https://issues.apache.org/jira/browse/WICKET-1428 >> >> for more information on why resources URLs don't work. If you're not, >> then please disregard. :) >> >> >> On Mon, May 12, 2008 at 9:36 AM, Doug Donohoe <[EMAIL PROTECTED]> wrote: >>> >>> I think I've discovered a bug with how wicket decides to output "../.." >>> in >>> front of images and css files when working with mounted pages. In this >>> case, I'm using mixed param encoding. >>> >>> A working URL is : >>> >>> http://localhost:8080/poker/search/doug >>> >>> My CSS gets generated as: >>> >>> <link href="../styles.css" rel="stylesheet" type="text/css"> >>> >>> But I search for something that needs to be URL-encoded, like a +, the >>> URL >>> becomes: >>> >>> http://localhost:8080/poker/search/%2B >>> >>> and the CSS link gets generated as: >>> >>> <link href="../../../styles.css" rel="stylesheet" type="text/css"> >>> >>> It seems to happen with most non-ascii encodings. >>> >>> I saw a similar error when there were null/empty param values and the >>> URL >>> generated was like "foo//bar" >>> (http://issues.apache.org/jira/browse/WICKET-1597). >>> >>> Note that all relative paths seem to be effected: images, shortcut >>> icon, >>> etc. >>> >>> MY QUESTION: Can someone give me a pointer where to look for the code >>> that >>> calculates the relative paths? I'd like to try and track this down. >>> >>> Thanks, >>> >>> -Doug >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/trying-to-track-down-a-relative-path-bug-tp17187699p17187699.html >>> Sent from the Wicket - Dev mailing list archive at Nabble.com. >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/trying-to-track-down-a-relative-path-bug-tp17187699p17198645.html Sent from the Wicket - Dev mailing list archive at Nabble.com.
