https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-05-19T03:22:02ZRedmineRedmine - Patch #13697: Back-button on diff page is not working when I'm directed from emailhttps://www.redmine.org/issues/13697?journal_id=495332013-05-19T03:22:02ZFilou Centrinov
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/49533/diff?detail_id=36155">diff</a>)</li></ul><p>Woudn't you agree to apply this patch? Otherwise I can't go from a diff page to its issue page.</p> Redmine - Patch #13697: Back-button on diff page is not working when I'm directed from emailhttps://www.redmine.org/issues/13697?journal_id=495672013-05-21T07:12:20ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>2.4.0</i></li></ul><p>Committed in trunk <a class="changeset" title="fix back-button on description diff page in case of no browser history (#13697) Contributed by F..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/11893">r11893</a>, thanks.</p> Redmine - Patch #13697: Back-button on diff page is not working when I'm directed from emailhttps://www.redmine.org/issues/13697?journal_id=496272013-05-23T19:51:33ZFilou Centrinov
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>The problem is, that browsers handle <code>history.length</code> differently: <a class="external" href="http://www.w3schools.com/jsref/prop_his_length.asp">http://www.w3schools.com/jsref/prop_his_length.asp</a></p>
<p>I would suggest the following code, tested on Firefox, IE and Opera: <br /><pre>
<code>history.back(); return (document.referrer=="");</code><br /></pre>or<br /><pre>
<code>if (document.referrer!="") {history.back(); return false;}</code><br /></pre></p>
<p>I tested it like this: <code>history.back(); alert((document.referrer=="")); return (document.referrer=="");</code></p> Redmine - Patch #13697: Back-button on diff page is not working when I'm directed from emailhttps://www.redmine.org/issues/13697?journal_id=496322013-05-24T07:31:55ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Committed in trunk <a class="changeset" title="use document.referrer instead of history.length (#13697) Contributed by Filou Centrinov." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/11900">r11900</a>, thanks.</p>