{"issue":{"user":{"id":1065835,"login":"alexcroox","url":"https://api.github.com/users/alexcroox","avatar_url":"https://secure.gravatar.com/avatar/6397ffea71d8578cdf1208e7ad22f337?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6397ffea71d8578cdf1208e7ad22f337"},"milestone":null,"title":"Clicking same link twice (need to re-trigger init actions)","created_at":"2011-10-21T23:05:26Z","updated_at":"2011-12-21T15:18:58Z","labels":[],"state":"open","id":2020512,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/tkyk/jquery-history-plugin/issues/41","closed_at":null,"number":41,"body":"I have an action inside the init which I would like to be called if the same button is pressed again\r\n\r\n    $.history.init(function(hash)\r\n    {\r\n         if(hash != \"\")\r\n        {\r\n            console.log('loading video');\r\n        }\r\n    },\r\n    { unescape: \",/-\" });\r\n\r\nHowever in the plugin there seems to be code to prevent the code above being executed again if there is no history change (e.g the hash is the same).\r\n\r\nI have tried removing lines like below in the plugin that seem to be the reason for this blocking but I'm not having any joy\r\n\r\n    if(current_hash != self._appState) {","url":"https://api.github.com/repos/tkyk/jquery-history-plugin/issues/41","comments":1,"assignee":null},"comment":{"user":{"id":1277895,"login":"Banford","url":"https://api.github.com/users/Banford","avatar_url":"https://secure.gravatar.com/avatar/bfebf685cc6ef790521f306514802f5e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bfebf685cc6ef790521f306514802f5e"},"created_at":"2011-12-21T15:18:58Z","updated_at":"2011-12-21T15:18:58Z","id":3234854,"body":"I had a similar issue where I wanted the page to refresh when the same link was clicked again. I just handled it in my click handler by comparing the link href to the hash. If they are the same I manually load that URL through jQuery ajax. But I wouldn't know where to start in making the plugin handle this by default sorry.","url":"https://api.github.com/repos/tkyk/jquery-history-plugin/issues/comments/3234854"},"action":"created"}