Skip to content

Commit af4c3e8

Browse files
author
root
committed
Fix HTTP urls when Redmine is under a sub-URI (example.com/redmine)
1 parent 8263b07 commit af4c3e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: app/models/concerns/gitolitable_urls.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def git_url
3232

3333

3434
def http_url
35-
"http://#{http_user_login}#{RedmineGitHosting::Config.http_server_domain}/#{http_access_path}"
35+
"http://#{http_user_login}#{RedmineGitHosting::Config.http_root_url}/#{http_access_path}"
3636
end
3737

3838

3939
def https_url
40-
"https://#{http_user_login}#{RedmineGitHosting::Config.https_server_domain}/#{http_access_path}"
40+
"https://#{http_user_login}#{RedmineGitHosting::Config.https_root_url}/#{http_access_path}"
4141
end
4242

4343

@@ -59,8 +59,8 @@ def go_access_url
5959
#
6060
def go_url
6161
return '' if !smart_http_enabled?
62-
return "#{RedmineGitHosting::Config.https_server_domain}/#{go_access_path}" if https_access_available?
63-
return "#{RedmineGitHosting::Config.http_server_domain}/#{go_access_path}" if http_access_available?
62+
return "#{RedmineGitHosting::Config.https_root_url}/#{go_access_path}" if https_access_available?
63+
return "#{RedmineGitHosting::Config.http_root_url}/#{go_access_path}" if http_access_available?
6464
end
6565

6666

0 commit comments

Comments
 (0)