Commit 7b8ee0d0 authored by gubala's avatar gubala

better path for create folder

parent 8ae0265c
2.0.0-p353
\ No newline at end of file
2.1.4
......@@ -97,6 +97,10 @@ class ApplicationController < ActionController::Base
end
end
def prometheus_path
@path.gsub("gsiftp:/login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
end
private
def proxy_from_header
......
......@@ -53,7 +53,7 @@ class FoldersController < ApplicationController
current_user.user_data.save
end
redirect_to folder_path(@path), notice: result ? I18n.t('folder.success') : nil
redirect_to folder_path(prometheus_path), notice: result ? I18n.t('folder.success') : nil
end
def mkdir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment