diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-24 08:05:52 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-24 08:05:52 +0100 |
commit | 726237ba9855f76a79bbffe0abc316f72a950b3b (patch) | |
tree | 5a9003eacc2b8335dd3ef3b5d69cf9ad52d5b770 | |
parent | 627eba55d63daf7e725edc5425debfc3890f2f9f (diff) | |
download | gitlab-ce-726237ba9855f76a79bbffe0abc316f72a950b3b.tar.gz |
Fixed web IDE not working with relative URLs
Closes #45649
-rw-r--r-- | app/helpers/blob_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index fef29789832..e7a36e20050 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -17,7 +17,7 @@ module BlobHelper end def ide_edit_path(project = @project, ref = @ref, path = @path, options = {}) - "#{ide_path}/project#{edit_blob_path(project, ref, path, options)}" + "#{ide_path}/project#{url_for([project, "edit", "blob", id: [ref, path], script_name: "/"])}" end def edit_blob_button(project = @project, ref = @ref, path = @path, options = {}) |