You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/06/06 11:57:59 UTC

[jira] [Commented] (WICKET-3773) Onclick Script displayed as Link Text

    [ https://issues.apache.org/jira/browse/WICKET-3773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044766#comment-13044766 ] 

Martin Grigorov commented on WICKET-3773:
-----------------------------------------

Wicket needs to "relativize" all relative links so they keep work in proxy enviroment.
Since your href is relative (href="google.com") it is confused that it should relativize it.
Use href="http://google.com" and everything is working again.

> Onclick Script displayed as Link Text
> -------------------------------------
>
>                 Key: WICKET-3773
>                 URL: https://issues.apache.org/jira/browse/WICKET-3773
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: bernard
>         Attachments: Quickstart.zip
>
>
> Wicket changes an anchor that has an onclick attribute in a way that breaks it:
> <a href="google.com" onclick="if(history.length > 1){history.back();return false;}else{return true;}">Back to Google</a>
> becomes:
> <a href="google.com" onclick="" if="" history.length=""> 1){history.back();return false;}else{return true;}">Back to Google</a>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira