Project

General

Profile

Actions

Defect #9501

closed

Notification link in e-mail are wrong

Added by Luis Braga over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
2011-10-31
Due date:
% Done:

100%

Estimated time:
Resolution:
Invalid
Affected version:

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

Actions #1

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?

Actions #2

Updated by Mischa The Evil over 13 years ago

...and more important I think: Hostname and path settings?

Actions #3

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/3

Did you set config.action_mailer.default_url_options: http://api.rubyonrails.org/classes/ActionMailer/Base.html?

Actions #4

Updated by Luis Braga over 13 years ago

Sure, i did :(.
Mischa The Evil wrote:

...and more important I think: Hostname and path settings?

Actions #5

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.

Actions #6

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.

Actions

Also available in: Atom PDF