diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb index 2b8e76d4638fdc1e755b78a925d957e6bf4af97a..cf7f00d3113249620745d23191232fb3eed1073c 100644 --- a/app/controllers/projects/blob_controller.rb +++ b/app/controllers/projects/blob_controller.rb @@ -47,6 +47,7 @@ class Projects::BlobController < Projects::ApplicationController previous_path = @path @path = params[:file_name] end + namespace_project_blob_path(@project.namespace, @project, File.join(@target_branch, @path)) end diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb index ac5d7ddde02258df9fae9350521aae43ded88f13..af7af5213c01ecd055e16d1f6853ed8d2a86266f 100644 --- a/app/services/files/base_service.rb +++ b/app/services/files/base_service.rb @@ -15,6 +15,8 @@ module Files params[:file_content] end + puts @file_path + # Validate parameters validate