Fixed web IDE not working with relative URLs

Closes #45649
This commit is contained in:
Phil Hughes 2018-04-24 08:05:52 +01:00
parent 627eba55d6
commit 726237ba98
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {})