URLs in notification emails do not include the sub-URI
I have Redmine working as configured in #11881, #12102, etc. Everything seems to be working except that issue URLs in the notification emails generated by Redmine do not include the sub-URI. For example...
http://my.domain.com/issues/713 instead of
Someone pointed this out to me recently (they got 404 error) so I went back in my email history and this problem started when I upgraded from Redmine 1.2.1 to 2.0.2. I don't know if other people with sub-URIs are having the same issue and don't know about it, or if this is actually working for them.
The call in the mailer is
@issue_url = url_for(:controller => 'issues', :action => 'show',...
In my limited Ruby knowledge, I'm not sure how the result of this might be different from the urls generated for issues elsewhere in Redmine that seem to be working.
Redmine version 2.1.2.stable
Ruby version 1.9.2 (i386-mingw32)
Rails version 3.2.8
Database adapter Mysql2
#2 Updated by Ivo Maixner about 5 years ago
Affected by the same issue.
In addition, if the issue has an attachment, the notification email contains a direct link to it, which is broken in the same way - it is missing the sub-URI prefix.
Environment: Redmine version 2.6.0.stable Ruby version 2.0.0-p594 (2014-10-27) [x86_64-linux] Rails version 3.2.19
Please provide a fix or a hint how to work around this.