From 2a0f83f534f46836127ebd556fa7d6096b168fe5 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 27 Mar 2017 11:15:29 +0200 Subject: Fix environment folder route when special chars present --- config/routes/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes') diff --git a/config/routes/project.rb b/config/routes/project.rb index 44b8ae7aedd..512984c6f48 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -164,7 +164,7 @@ constraints(ProjectUrlConstrainer.new) do end collection do - get :folder, path: 'folders/:id' + get :folder, path: 'folders/*id', constraints: { format: /(html|json)/ } end end -- cgit v1.2.1