プロジェクト

全般

プロフィール

Vote #64082

完了

URL in send_reminders email for 'View all issues' is incorrect.

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2008/11/01
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
2
issue_org_id:
2122
author_id:
1752
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
5
ステータス-->[Closed]

説明

In the emails send_reminder sends out, the URL inserted for the 'View all issues' link is not correct if you have the project installed in a sub-directory. All other URLs that get sent out are correct, just not this one. This is based on r1646 so it is a ways behind trunk, but it looks to do the same thing in HEAD too.


journals

Related to this issue, I also found that emails generated from SVN commits also has the incorrect URL, namely it is missing the sub-directory in the URL: /issues/show/### instead of /redmine/issues/show/###.

On a hunch I tried to update the 'host' setting in settings to include the /redmine so url_for() will build the correct URl. Unfortunately, this results in normal email notices of activity going out with /redmine/redmine/issues/show/### in the URL.

So, why are URLs getting built one way for SVN commits and send_reminders, but another way for normal activity emails?
--------------------------------------------------------------------------------
This should be fixed in r1989. Add /redmine to your host setting, it should no longer be added twice to the url when sending emails from the web app.

Feedback is welcome.
--------------------------------------------------------------------------------
r1989 caused a test failure because @:skip_relative_url_root@ is added to the url, "https://mydomain.foo/issues/show/1?skip_relative_url_root=true". Is the @:skip_relative_url_root@ option available in mailer views?
--------------------------------------------------------------------------------
Indeed. UrlRewriter#url_for doesn't work as I expected.
r1992 should fix it.
--------------------------------------------------------------------------------

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

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0