Defect #9501
closedNotification link in e-mail are wrong
100%
Description
When I do a new/update issue the link in e-mail sent to users assigned or watchers are wrong, the links are delivered like that:
http://http/redmine/issues/3
and in my case the correct link should be: http://<name_of_my_server>/redmine/issues/3
I'm using a fresh instalation of Redmine 1.2.1.stable.7657 (MySQL)
-- Passenger
-- Apache 2
-- Ubuntu server 10.x
Updated by Alex Shulgin over 13 years ago
Luis Braga wrote:
When I do a new/update issue the link in e-mail sent to users assigned or watchers are wrong, the links are delivered like that:
http://http/redmine/issues/3
and in my case the correct link should be: http://<name_of_my_server>/redmine/issues/3
Did you set config.action_mailer.default_url_options: http://api.rubyonrails.org/classes/ActionMailer/Base.html?
Updated by Mischa The Evil over 13 years ago
...and more important I think: Hostname and path settings?
Updated by Luis Braga over 13 years ago
Try it, set in enviroment.rb
config.action_mailer.default_url_options = { :host => "name_of_my_server" }
Restart apache, but had no sucess :(
Alex Shulgin wrote:
Luis Braga wrote:
When I do a new/update issue the link in e-mail sent to users assigned or watchers are wrong, the links are delivered like that:
http://http/redmine/issues/3
and in my case the correct link should be: http://<name_of_my_server>/redmine/issues/3Did you set config.action_mailer.default_url_options: http://api.rubyonrails.org/classes/ActionMailer/Base.html?
Updated by Luis Braga over 13 years ago
Sure, i did :(.
Mischa The Evil wrote:
...and more important I think: Hostname and path settings?
Updated by Luis Braga over 13 years ago
- Status changed from New to Resolved
- Assignee set to Luis Braga
- % Done changed from 0 to 100
Resolved.
The error was because i put the protocol http in Hostname and path settings, I wrote http://my_server instead of my_server (without protocol)
/shy
Ty Alex and Misha.
Updated by Mischa The Evil over 13 years ago
- Status changed from Resolved to Closed
- Assignee deleted (
Luis Braga) - Resolution set to Invalid
Thanks for your feedback.