Email alert with wrong link to issues: doubling th econtext path
Added by Adriano Di Pasquale almost 8 years ago
Dear all,
I started from a fresh turnkey installation of redmine. This was withouth context path (e.g., http://mydomain/). Then I modified settings in order to have the service under http://mydomain/bio (bio as context path) I got th results modifying
1) config/environment.rb
contains
# Load the Rails application
require File.expand_path('../application', __FILE__)
# Make sure there's no plugin in vendor/plugin before starting
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
"Please, put your Redmine plugins in the `plugins` directory at the root of your " +
"Redmine directory (#{File.join(Rails.root, "plugins")})"
exit 1
end
RedmineApp::Application.routes.default_scope = "/bio"
# Initialize the Rails application
Rails.application.initialize!
2) httpd.conf for static path: javascript,css,images**
in /etc/apache2/conf/httpd.conf
SetEnv RAILS_ENV production SetEnv RAILS_RELATIVE_URL_ROOT "/bio" DocumentRoot /var/www/redmine/public/ <Directory /var/www/redmine/public/> Options +FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory> Alias /bio /var/www/redmine/public
The email is configured in config/configuration.yml
as
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: false
address: "intmail.izs.it"
domain: "izs.it"
The emails are sent correctly, but the link to the issue is wrong. THE CONTEXT PATH IS DUPLICATED like in the following, like:
http://mydomain/bio/bio/issues/1555
Could you provide me some hints.
Thank you in advance for your support Adriano
Replies (1)
RE: Email alert with wrong link to issues: doubling th econtext path - Added by Anonymous almost 8 years ago
There ist a "hostname" setting in the main redmine configuration - maybe there is a wrong base-URL?
cheers
Immanuel.