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 2013/07/12 15:17:49 UTC
[jira] [Updated] (WICKET-5270) Do not set the location.hash when
clicking on a link
[ https://issues.apache.org/jira/browse/WICKET-5270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-5270:
------------------------------------
Summary: Do not set the location.hash when clicking on a link (was: Page reloads sometimes when clicking on AjaxLink)
> Do not set the location.hash when clicking on a link
> ----------------------------------------------------
>
> Key: WICKET-5270
> URL: https://issues.apache.org/jira/browse/WICKET-5270
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.9.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
>
> In two of our apps we experience a strange page reloads after clicking on AjaxLink.
> The issue is not easy to reproduce but it seems to be caused by the used href="#" somehow.
> Applying a custom behavior that overrides href="#" with href="javascript:;" fixes the problem.
> The problem occurred on Google Chrome and IE9 so far.
> I'll need to investigate some more but the only fix that I see for now is to apply the fix in org.apache.wicket.ajax.markup.html.AjaxLink#onComponentTag and other places where Wicket does this.
> A positive side effect that I see additionally is that with this fix the url hash won't change anymore. This causes problems with 'hashchange' event listeners in some browsers.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira