You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Riehn <Ja...@1und1.de> on 2013/05/07 11:23:15 UTC

Scheme-less URLs vs. UrlRenderer

Hello,

I would like to introduce a similar pattern as  fifty-five's SimpleCDN ( 
http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/). 
Thereby I stumbled across the same obstacle as mbrictson:

"Wicket does not understand scheme-less URLs that start with "//". 
Fixing this would require enhancements to Wicket'sUrl, UrlRenderer, and 
perhaps other classes". You can find a closer description here: 
https://github.com/55minutes/fiftyfive-wicket/issues/35

Is there any advice in how to handle such relatives URLs using wicket-1.5.x?

Regards,

Jan

Re: Scheme-less URLs vs. UrlRenderer

Posted by Martin Grigorov <mg...@apache.org>.
Hi Jan,

This has been improved in 6.7.0 -
https://issues.apache.org/jira/browse/WICKET-5065
https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/request/cycle/UrlRendererTest.java?source=c#L510-L538
Time to upgrade ;-)


On Tue, May 7, 2013 at 11:23 AM, Jan Riehn <Ja...@1und1.de> wrote:

> Hello,
>
> I would like to introduce a similar pattern as  fifty-five's SimpleCDN (
> http://blog.55minutes.com/**2012/01/simplecdn-and-the-**
> newly-released-fiftyfive-**wicket-32/<http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/>).
> Thereby I stumbled across the same obstacle as mbrictson:
>
> "Wicket does not understand scheme-less URLs that start with "//". Fixing
> this would require enhancements to Wicket'sUrl, UrlRenderer, and perhaps
> other classes". You can find a closer description here:
> https://github.com/55minutes/**fiftyfive-wicket/issues/35<https://github.com/55minutes/fiftyfive-wicket/issues/35>
>
> Is there any advice in how to handle such relatives URLs using
> wicket-1.5.x?
>
> Regards,
>
> Jan
>



-- 
Martin Grigorov
Wicket Training & Consulting
http://jWeekend.com <http://jweekend.com/>