redmine_scm_extensions icon indicating copy to clipboard operation
redmine_scm_extensions copied to clipboard

Bad links using Redmine from root directory

Open lspg opened this issue 12 years ago • 0 comments

Hi,

just for info, as i'm running Redmine from root directory and not a subdir, the links from the repository view are wrong :

https://my.redmine.org/projects/myproject/false/projects/myproject/scm_extensions/upload?path=&repository_id=myfiles

I had to modify the file /lib/scm_extensions_repository_view_hook.rb as follow to get the good ones :

def suburi(url)
    baseurl = Redmine::Utils.relative_url_root
    if not url.match(/^#{baseurl}/)
        #url = baseurl + url
    end
    return url
end

Don't know how to do it (i'm PHP not Ruby :( ), but you might automate config detection i guess.

++ :)

lspg avatar Jul 03 '13 08:07 lspg