プロジェクト

全般

プロフィール

Vote #73719

完了

Back-button on diff page is not working when I'm directed from email

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
70
issue_org_id:
13697
author_id:
69004
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

+Situation:+
I get an email from Redmine with a diff-link to the changed description of an issue. I click on that link in my email to get informed about changed details.

+Problem:+
When I click now on the back-link on the diff page, nothing happends.

+Reason:+
The back-link tries to get the page I've been before (history.back()), but there not such a page.

I fixed this problem with a patch.


journals

Woudn't you agree to apply this patch? Otherwise I can't go from a diff page to its issue page.
--------------------------------------------------------------------------------
Committed in trunk r11893, thanks.
--------------------------------------------------------------------------------
The problem is, that browsers handle <code>history.length</code> differently: http://www.w3schools.com/jsref/prop_his_length.asp

I would suggest the following code, tested on Firefox, IE and Opera:
<pre>
<code>history.back(); return (document.referrer=="");</code>
</pre>or
<pre>
<code>if (document.referrer!="") {history.back(); return false;}</code>
</pre>

I tested it like this: <code>history.back(); alert((document.referrer=="")); return (document.referrer=="");</code>
--------------------------------------------------------------------------------
Committed in trunk r11900, thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン2.4.0_70 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0