You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Dirk Forchel (JIRA)" <ji...@apache.org> on 2012/06/05 09:35:23 UTC

[jira] [Updated] (WICKET-4587) URLRenderer renderFullUrl

     [ https://issues.apache.org/jira/browse/WICKET-4587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dirk Forchel updated WICKET-4587:
---------------------------------

    Attachment: quickstart.zip

Attached you can find the quickstart. The BasePage class generates in the HTML header links to alternative Languages/Locales (just as an example). These links are absolute URLs. With Wicket 1.5.5 the generated links are correct but not with Wicket 1.5.7.

correct: http://localhost:8080/shop/en/home.html
wrong: http://localhost:8080/shop/de_DE/shop/en/home.html

You can switch to different Locales/Languages with the LocaleDropDownChoice added to each page.

                
> URLRenderer renderFullUrl
> -------------------------
>
>                 Key: WICKET-4587
>                 URL: https://issues.apache.org/jira/browse/WICKET-4587
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.7
>            Reporter: Dirk Forchel
>         Attachments: quickstart.zip
>
>
> When using the following code to create an absolute url in wicket 1.5.7 from a page class and parameters, there are also duplicate segments in the url. the rendered absolute url is not correct.
> final Url url = RequestCycle.get().mapUrlFor( pageClass, pageParameters );
> final String result = RequestCycle.get().getUrlRenderer().renderFullUrl( url );
> RequestCycle.get().mapUrlFor(..) does not return an "absolute" url (first segment will not be empty).
> See also description in WICKET-4561

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira