When sending an email redmine replies with 404
The plugin worked when setting up the contact form and it shows up correctly in the frontend but when sending the actual email redmine replies
Page not found The page you were trying to access doesn't exist or has been removed.
The request looks good:
POST /contact/mail HTTP/1.1 Host: example.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://example.com/contact/mail Cookie: _redmine_session=BAh7D.... Connection: keep-alive
Something wrong with your controller?
#6 Updated by Romain Schmitz almost 7 years ago
Sorry the logs have gone for that particular stacktrace but I’ve got some positive news anyway.
I think the reason was the route I have set to
root :to => 'contact_form#index', :as => 'home'
in config/routes.rb. When I changed this setting back to the default value your plugin worked like a charm aftwards. Then I changed it back and your plugin continued to work.
If that’s not the reason then I have no explanation for the issue. To be honest I don’t know much about redmine’s internals so I can’t investigate further.