Project

General

Profile

[ok] Plugins assets found, Plugins url_for not found... sub-URI

Added by luigifab ! over 9 years ago

Hello

I have a problem with Redmine sub-URI.
My plugin works with Redmine 1.4.7, but it does not work with Redmine 2.0.0 to 2.6.0!

I have tried with Webrick and Thin, all is working expect my url_for.
Yes, I have added Redmine::Utils::relative_url_root = "/redmine" in config/environment.rb.

In my plugin, I have a patch named AttachmentPatch.
I don't understand why my url_for does not work with Redmine 2+... can someone help me?

module AttachmentPatch
  ...
  module InstanceMethods
    def getUrl(action, all=false)
      ...
        return url_for({ :only_path => true, :controller => 'apijs', :action => action })
      ...
    end
...

    (1-1/1)