Commit 1c7b4473 authored by gubala's avatar gubala

better path for create folder

parent 0e069dc5
......@@ -147,7 +147,6 @@ class FilesController < ApplicationController
current_user.user_data.save if result
# redirect_to folder_path(@path.rpartition('/').first), notice: result ? I18n.t('delete.success') : nil
redirect_to folder_path(prometheus_path(@path.rpartition('/').first)), notice: result ? I18n.t('delete.success') : nil
end
......
......@@ -53,8 +53,6 @@ class FoldersController < ApplicationController
current_user.user_data.save
end
logger.info @path
redirect_to folder_path(prometheus_path(@path)), notice: result ? I18n.t('folder.success') : nil
end
......
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