You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (JIRA)" <ji...@apache.org> on 2010/08/19 15:33:29 UTC

[jira] Updated: (WICKET-3004) Using RedirectPolicy.NEVER_REDIRECT when redirecting to a page will break URLs

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

Peter Ertl updated WICKET-3004:
-------------------------------

    Attachment: broken-url-when-never-redirecting.patch

> Using RedirectPolicy.NEVER_REDIRECT when redirecting to a page will break URLs
> ------------------------------------------------------------------------------
>
>                 Key: WICKET-3004
>                 URL: https://issues.apache.org/jira/browse/WICKET-3004
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Peter Ertl
>            Priority: Critical
>         Attachments: broken-url-when-never-redirecting.patch
>
>
> When using RedirectPolicy.NEVER_REDIRECT the WebPageRenderer uses the URL of the __target__ page instead of the current URL. This is wrong as the target page URL will never be visible in the address bar of the browser as no redirect will happen.
> In consequence all references to the page (scripts, images, etc) are potentially broken, at least when the source and target url have different segment sizes. In this case the number of '../' for creating relative URL's will be wrong and the links are broken.
> patch is attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.