From 76abcd06b6531e15846d126431fc0edbc705f760 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 19 May 2010 14:36:58 +0100 Subject: Cache doesn't require initial slash --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 064d8af3d..be555b291 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -260,6 +260,7 @@ class ApplicationController < ActionController::Base path = url_for(param) first_three_digits = param['id'].to_s()[0..2] path = path.sub("/request/", "/request/" + first_three_digits + "/") + path = path.sub(/^\//, "") # remove initial slash end def foi_fragment_cache_all_for_request(info_request) first_three_digits = info_request.id.to_s()[0..2] -- cgit v1.2.3